Aggiunta stile listbox
This commit is contained in:
@@ -120,10 +120,11 @@
|
||||
</Grid>
|
||||
|
||||
<ListBox ItemsSource="{Binding MaterialList}"
|
||||
SelectedItem="{Binding SelMaterial}"
|
||||
DisplayMemberPath="sName"
|
||||
Grid.RowSpan="2"
|
||||
Margin="0,0,0,5"/>
|
||||
SelectedItem="{Binding SelMaterial}"
|
||||
Style="{StaticResource OptionWnd_ListBox}"
|
||||
DisplayMemberPath="sName"
|
||||
Grid.RowSpan="2"
|
||||
Margin="0,0,0,5"/>
|
||||
|
||||
</DockPanel>
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" />
|
||||
<Setter Property="IsEnabled" Value="{Binding IsEnabled, Mode=TwoWay}" />
|
||||
<EventSetter Event="MouseDoubleClick" Handler="Tool_DoubleClick"/>
|
||||
</Style>
|
||||
</Style>
|
||||
</TreeView.ItemContainerStyle>
|
||||
|
||||
<TreeView.Resources>
|
||||
@@ -76,9 +76,9 @@
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0" />
|
||||
<Image Grid.Column="0" Source="{Binding PictureString}" Height="32" Width="32" Margin="0"/>
|
||||
<TextBlock Grid.Column="1" Text="{Binding Name}" FontSize="15" Margin="5,0,10,0" VerticalAlignment="Center" HorizontalAlignment="left" />
|
||||
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding FamilyColor}" />
|
||||
<Ellipse Grid.Column="2" Height="10" Width="10" Fill="{Binding FamilyColor}"/>
|
||||
</Grid>
|
||||
|
||||
</HierarchicalDataTemplate>
|
||||
@@ -136,7 +136,8 @@
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="{Binding TcPos}"/>
|
||||
<TextBlock Text="{Binding TcPos}"
|
||||
Foreground="White"/>
|
||||
<ItemsControl Grid.Column="1" ItemsSource="{Binding ExitToolAssociationList}"
|
||||
HorizontalAlignment="Left">
|
||||
<ItemsControl.ItemsPanel>
|
||||
@@ -159,7 +160,8 @@
|
||||
IsChecked="{Binding IsOccupied}" Height="25" Width="25" Margin="0,0,5,0"
|
||||
Command="{Binding SetUpToolCommand}"
|
||||
IsEnabled="{Binding IsEnabledPos}"
|
||||
Background="{Binding ExitBtnBackgroundCol}"/>
|
||||
Background="{Binding ExitBtnBackgroundCol}"
|
||||
Foreground="Black"/>
|
||||
<!--BorderBrush="{DynamicResource EgaltechBlue1}"-->
|
||||
<Border x:Name="ToolBorder" Grid.Column="1"
|
||||
BorderThickness="1" ToolTip="{Binding ToolTipMsg}">
|
||||
@@ -173,7 +175,8 @@
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<TextBlock Text="{Binding Tool.Name}" Margin="3"/>
|
||||
<TextBlock Text="{Binding Tool.Name}" Margin="3"
|
||||
Foreground="White"/>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
@@ -1104,4 +1104,13 @@
|
||||
<Setter Property="Margin" Value="0,0,0,0"/>
|
||||
</Style>
|
||||
|
||||
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||
|
||||
<!-- ListBox -->
|
||||
<Style x:Key="OptionWnd_ListBox" TargetType="{x:Type ListBox}" BasedOn="{StaticResource {x:Type ListBox}}">
|
||||
<Setter Property="Background" Value="{StaticResource Omag_Black}"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource Omag_White}"/>
|
||||
<Setter Property="BorderThickness" Value="{StaticResource BorderBtn_Thickness}"/>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
Reference in New Issue
Block a user