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

37 lines
1.5 KiB
XML

<Grid x:Class="TopPanelButton1V"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:EgtStone3D="clr-namespace:EgtStone3D"
Style="{StaticResource TopPanelButton1_Grid}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ItemsControl ItemsSource="{Binding TopPanelListBtn}"
Style="{DynamicResource TopList_ItemsControl}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.Resources>
<DataTemplate DataType="{x:Type EgtStone3D:_Button}">
<Button ToolTip="{Binding Name}"
IsEnabled="{Binding IsEnabled}"
Command="{Binding CmdBtn}"
Style="{DynamicResource SceneButton1}">
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
</Button>
</DataTemplate>
<DataTemplate DataType="{x:Type EgtStone3D:_ToggleButton}">
<ToggleButton Command="{Binding CmdBtn}"
IsChecked="{Binding IsChecked}"
Style="{DynamicResource SceneToggleButton1}">
<EgtStone3D:SVGV FileSource="{Binding Img, UpdateSourceTrigger=PropertyChanged}"/>
</ToggleButton>
</DataTemplate>
</ItemsControl.Resources>
</ItemsControl>
</Grid>