475bd0ed83
- aggiunte chiamate alla funzioni per la creazione delle paretine - piccole aggiunte.
176 lines
7.1 KiB
XML
176 lines
7.1 KiB
XML
<DockPanel 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">
|
|
|
|
<Grid DockPanel.Dock="Top">
|
|
<EgtStone3D:TopPanelV DataContext="{StaticResource TopPanelVM}"/>
|
|
</Grid>
|
|
|
|
<!--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 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>
|
|
|
|
<!--LEFT colonna 1-->
|
|
<ItemsControl ItemsSource="{Binding LeftListBtn}"
|
|
Style="{DynamicResource 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="{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"
|
|
Style="{StaticResource MenuSelType_PopUp}">
|
|
<!--<ListBox ItemsSource="{Binding SelTypeList}"
|
|
SelectedItem="{Binding SelType}"/>-->
|
|
<!--<TextBlock Text="Scemo chi legge" Background="Red"></TextBlock>-->
|
|
<EgtStone3D:SelOptionV/>
|
|
</Popup>
|
|
</Grid>
|
|
</DockPanel> |