You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.4 KiB
30 lines
1.4 KiB
<Window x:Class="StandaloneDesigner.Window1" |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
Title="StandaloneDesigner" Height="500" Width="600" |
|
> |
|
<TabControl TabStripPlacement="Bottom" Name="tabControl" SelectionChanged="tabControlSelectionChanged"> |
|
<TabItem Header="Code"> |
|
<TextBox Name="CodeTextBox" AcceptsReturn="True" xml:space="preserve"><![CDATA[ |
|
<Border xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" BorderThickness="10"> |
|
<StackPanel> |
|
<Canvas Height="50" Background="White"></Canvas> |
|
<Button>Button 1</Button> |
|
<Button>Button 2</Button> |
|
<TabControl Width="300" Height="300"> |
|
<TabItem Header="Page 1"><StackPanel><Button>a</Button></StackPanel> </TabItem> |
|
<TabItem Header="Page 2"><Button>button on page 2</Button></TabItem> |
|
</TabControl> |
|
</StackPanel> |
|
</Border> |
|
]]></TextBox> |
|
</TabItem> |
|
<TabItem Header="Design" Name="designTab"> |
|
<designer:DesignSurface |
|
xmlns:designer="clr-namespace:ICSharpCode.WpfDesign.Designer;assembly=ICSharpCode.WpfDesign.Designer" |
|
Name="designSurface"> |
|
</designer:DesignSurface> |
|
</TabItem> |
|
</TabControl> |
|
</Window>
|
|
|