09459328a5
-modifica keydown
182 lines
7.8 KiB
XML
182 lines
7.8 KiB
XML
<DockPanel x:Class="SceneButtonV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtStone3D="clr-namespace:EgtStone3D"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">
|
|
|
|
<Grid DockPanel.Dock="Top">
|
|
<TabControl SelectedIndex="{Binding SelTopPanel}"
|
|
Style="{StaticResource TopPanel_TabControl}">
|
|
<TabItem Header="TABITEM"
|
|
Style="{StaticResource SceneButton_TabItem}"/>
|
|
</TabControl>
|
|
</Grid>
|
|
|
|
<!--TOP-->
|
|
<ItemsControl ItemsSource="{Binding TopListBtn}"
|
|
Style="{StaticResource TopList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{StaticResource SceneButtonH_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button ToolTip="{Binding Name}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{StaticResource SceneButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton ToolTip="{Binding Name}"
|
|
Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{StaticResource SceneToggleButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<!--BOTTOM-->
|
|
<ItemsControl ItemsSource="{Binding BottomListBtn}"
|
|
Style="{StaticResource BottomList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{StaticResource SceneButtonH_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button ToolTip="{Binding Name}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{StaticResource SceneButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{StaticResource SceneToggleButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<!--BOTTOM CENTER-->
|
|
<ItemsControl ItemsSource="{Binding BottomCenterListBtn}"
|
|
Style="{StaticResource BottomCenterList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{StaticResource SceneButtonH_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button Content="{Binding Name}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{StaticResource SceneButton}"/>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{StaticResource SceneToggleButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ButtonComboBox}">
|
|
<Button Content="{Binding Name}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{StaticResource SceneButton}"/>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<!--RIGHT-->
|
|
<ItemsControl ItemsSource="{Binding RightListBtn}"
|
|
Style="{StaticResource RightList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{StaticResource SceneButtonV_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button Command="{Binding CmdBtn}"
|
|
Style="{StaticResource SceneButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{StaticResource SceneToggleButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
|
|
</ItemsControl>
|
|
|
|
<!--LEFT colonna 1-->
|
|
<ItemsControl ItemsSource="{Binding LeftListBtn}"
|
|
Style="{StaticResource LeftList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<WrapPanel Style="{StaticResource WrapLeftList_WrapPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
|
|
<Button ToolTip="{Binding Name}"
|
|
IsEnabled="{Binding IsEnabled}"
|
|
Command="{Binding CmdBtn}"
|
|
Style="{StaticResource SceneButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</Button>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
|
|
<ToggleButton Command="{Binding CmdBtn}"
|
|
IsChecked="{Binding IsChecked}"
|
|
Style="{StaticResource SceneToggleButton}">
|
|
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
|
|
</ToggleButton>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
|
|
<Grid Name="MainGrid"
|
|
Style="{StaticResource 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"
|
|
Style="{StaticResource MenuSelType_PopUp}">
|
|
<!--<ListBox ItemsSource="{Binding SelTypeList}"
|
|
SelectedItem="{Binding SelType}"/>-->
|
|
<!--<TextBlock Text="Scemo chi legge" Background="Red"></TextBlock>-->
|
|
<EgtStone3D:SelOptionV/>
|
|
</Popup>
|
|
</Grid>
|
|
</DockPanel> |