Files
egtstone3d/TopPanel/TopPanelButtonV.xaml
Demetrio Cassarino fdf49c18db -aggiunto short cut
-piccole modifiche a salvataggio e apertura
-aggiunto immagini messagebox
2025-01-29 16:51:59 +01:00

48 lines
2.1 KiB
XML

<Grid x:Class="TopPanelButtonV"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtStone3D="clr-namespace:EgtStone3D"
x:Name="TopPanelButtonGrid"
Style="{StaticResource TopPanelButton_Grid}">
<Grid.Resources>
<EgtStone3D:SplitConverter x:Key="SplitConverter"/>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBlock Name="IndexTopList" Visibility="Collapsed"/>
<ItemsControl ItemsSource="{Binding TopPanelListBtn}"
Style="{DynamicResource TopPanelButton_ItemsControl}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Width="{Binding ActualWidth,ElementName=TopPanelButtonGrid, Converter={StaticResource SplitConverter},ConverterParameter={x:Reference IndexTopList}}"
Style="{StaticResource TopPanel_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}">
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
</Button>
</DataTemplate>
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
<ToggleButton Command="{Binding CmdBtn}"
IsChecked="{Binding IsChecked}"
Style="{DynamicResource SceneToggleButton}">
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
</ToggleButton>
</DataTemplate>
</ItemsControl.Resources>
</ItemsControl>
<TextBlock Grid.Row="1"
Text="{Binding SubTitle}"
Style="{StaticResource TopPanel_TxBl}"/>
</Grid>