173 lines
7.4 KiB
XML
173 lines
7.4 KiB
XML
<UserControl x:Class="SceneButtonV"
|
|
xmlns:EgtStone3D="clr-namespace:EgtStone3D"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<DockPanel>
|
|
<!--TOP-->
|
|
<ItemsControl ItemsSource="{Binding TopListBtn}"
|
|
Style="{DynamicResource TopList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{DynamicResource SceneButtonH_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button ToolTip="{Binding Name}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{DynamicResource SceneButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{DynamicResource SceneToggleButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<!--BOTTOM-->
|
|
<ItemsControl ItemsSource="{Binding BottomListBtn}"
|
|
Style="{DynamicResource BottomList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{DynamicResource SceneButtonH_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button ToolTip="{Binding Name}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{DynamicResource SceneButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{DynamicResource SceneToggleButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<!--BOTTOM CENTER-->
|
|
<ItemsControl ItemsSource="{Binding BottomCenterListBtn}"
|
|
Style="{DynamicResource BottomCenterList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{DynamicResource SceneButtonH_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button Content="{Binding Name}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{DynamicResource SceneButton}"/>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{DynamicResource SceneToggleButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ButtonComboBox}">
|
|
<Button Content="{Binding Name}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{DynamicResource SceneButton}"/>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<!--RIGHT-->
|
|
<ItemsControl ItemsSource="{Binding RightListBtn}"
|
|
Style="{DynamicResource RightList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{DynamicResource SceneButtonV_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button Content="{Binding Name}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{DynamicResource SceneButton}"/>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{DynamicResource SceneToggleButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
|
|
</ItemsControl>
|
|
<!--LEFT colonna 1-->
|
|
<ItemsControl ItemsSource="{Binding LeftListBtn}"
|
|
Style="{DynamicResource LeftList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel Orientation="Horizontal" Width="80"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button ToolTip="{Binding Name}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{DynamicResource SceneButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{DynamicResource SceneToggleButton}">
|
|
<Image Source="{Binding Img}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<Grid Name="MainGrid"
|
|
Style="{DynamicResource MainGrid}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Popup Name="MenuSelType" AllowsTransparency="True" Focusable="False" Placement="Mouse" IsOpen="False">
|
|
<!--<ListBox ItemsSource="{Binding SelTypeList}"
|
|
SelectedItem="{Binding SelType}"/>-->
|
|
<!--<TextBlock Text="Scemo chi legge" Background="Red"></TextBlock>-->
|
|
<EgtStone3D:SelOptionV/>
|
|
</Popup>
|
|
</Grid>
|
|
</DockPanel>
|
|
|
|
</UserControl>
|