EgtCAM5 :
- Migliorie varie.
This commit is contained in:
+12
-9
@@ -8,27 +8,30 @@
|
||||
<TextBox/>
|
||||
|
||||
<UniformGrid Rows="1">
|
||||
<Button Content="New Part" Command="{Binding NewPartCommand}" Width="40" Height="40"/>
|
||||
<Button Content="New Layer" Command="{Binding NewLayerCommand}" Width="40" Height="40"/>
|
||||
<Button Content="Color" Command="{Binding LayerColorCommand}" Width="40" Height="40"/>
|
||||
<Button Content="New Part" Command="{Binding NewPartCommand}" Width="80" Height="40"/>
|
||||
<Button Content="New Layer" Command="{Binding NewLayerCommand}" Width="80" Height="40"/>
|
||||
<Button Content="Color" Command="{Binding LayerColorCommand}" Width="80" Height="40"/>
|
||||
</UniformGrid>
|
||||
<TreeView Name="LayerTreeView"
|
||||
<TreeView Name="LayerTreeView" MaxHeight="600"
|
||||
ItemsSource="{Binding Path=LayerList}">
|
||||
<TreeView.Resources>
|
||||
<!--Modifico DataTemplate del ToolItem per poter inserire immagine e testo-->
|
||||
<DataTemplate DataType="{x:Type local:LayerTreeViewItem}">
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:LayerTreeViewItem}" ItemsSource="{Binding Items}">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Margin="0,8,6,4" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding Name}" Height="18" FontSize="15" Margin="10"/>
|
||||
<Ellipse Height="10" Width="10" Fill="{Binding LayerColor}" />
|
||||
<CheckBox Grid.Column="0" IsChecked="{Binding OnOff}" Height="15" Width="15" Margin="0,0,5,0"/>
|
||||
<Image Grid.Column="1" Source="{Binding PictureString}" Height="15" Margin="0,0,5,0"/>
|
||||
<TextBlock Grid.Column="2" Text="{Binding Name}"/>
|
||||
<Ellipse Grid.Column="3" Height="10" Width="10" Fill="{Binding LayerColor}" />
|
||||
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</HierarchicalDataTemplate>
|
||||
</TreeView.Resources>
|
||||
|
||||
<!--Style dei nodi CathegoryItem che li riquadra di azzurro quando clicckati ed elimina l'ombra grigia -->
|
||||
|
||||
Reference in New Issue
Block a user