Added layers and styles tabs
This commit is contained in:
Родитель
295cd4da1a
Коммит
56faa6f663
|
@ -2,7 +2,7 @@
|
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="Test"
|
||||
Height="720" Width="870"
|
||||
Height="720" Width="1080"
|
||||
Background="LightGray"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
WindowState="Normal"
|
||||
|
@ -11,11 +11,15 @@
|
|||
TextOptions.TextHintingMode="Auto"
|
||||
TextOptions.TextRenderingMode="Auto">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="150"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Menu Grid.Row="0" Background="Transparent">
|
||||
<Menu Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Background="Transparent">
|
||||
<MenuItem Header="_File">
|
||||
<MenuItem x:Name="fileExit" Header="E_xit"/>
|
||||
</MenuItem>
|
||||
|
@ -38,6 +42,26 @@
|
|||
<MenuItem x:Name="stylesEdit" Header="_Edit..."/>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Canvas x:Name="canvas" Grid.Row="1" Width="800" Height="600" Background="DarkGray"/>
|
||||
<Canvas x:Name="canvas" Grid.Row="1" Grid.Column="0" Width="800" Height="600" Background="DarkGray"/>
|
||||
<TabControl Grid.Row="1" Grid.Column="1">
|
||||
<TabItem Header="Layers">
|
||||
<ListBox ItemsSource="{Binding Layers}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Name}"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</TabItem>
|
||||
<TabItem Header="Styles">
|
||||
<ListBox ItemsSource="{Binding Styles}">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Name}"/>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</Window>
|
||||
|
|
|
@ -106,6 +106,10 @@ namespace Test
|
|||
// initialize demo
|
||||
|
||||
//Demo.Create(container, 800, 600, 10);
|
||||
|
||||
// initialize bindings
|
||||
|
||||
DataContext = container;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче