|
|
|
@ -44,7 +44,9 @@ |
|
|
|
UseWholeWordFilter="{Binding UseWholeWordFilter}" |
|
|
|
UseRegexFilter="{Binding UseRegexFilter}"/> |
|
|
|
|
|
|
|
<DataGrid Items="{Binding PropertiesView}" |
|
|
|
<DataGrid |
|
|
|
x:Name="DataGrid" |
|
|
|
Items="{Binding PropertiesView}" |
|
|
|
Grid.Row="2" |
|
|
|
BorderThickness="0" |
|
|
|
RowBackground="Transparent" |
|
|
|
@ -129,6 +131,18 @@ |
|
|
|
</Expander.Header> |
|
|
|
|
|
|
|
<ItemsControl Margin="20,0,0,0" Grid.Row="1" Items="{Binding Setters}"> |
|
|
|
|
|
|
|
<ItemsControl.Styles> |
|
|
|
<Style Selector="TextBlock.property-name"> |
|
|
|
<Setter Property="FontWeight" Value="SemiBold" /> |
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style Selector="TextBlock.property-name:pointerover"> |
|
|
|
<Setter Property="TextDecorations" Value="Underline" /> |
|
|
|
</Style> |
|
|
|
</ItemsControl.Styles> |
|
|
|
|
|
|
|
<ItemsControl.DataTemplates> |
|
|
|
|
|
|
|
<DataTemplate DataType="IBrush"> |
|
|
|
@ -138,6 +152,17 @@ |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
|
|
|
|
<DataTemplate DataType="Color"> |
|
|
|
<StackPanel Orientation="Horizontal" Spacing="2"> |
|
|
|
<Border BorderThickness="1" BorderBrush="Black" Width="8" Height="8"> |
|
|
|
<Border.Background> |
|
|
|
<SolidColorBrush Color="{Binding}" /> |
|
|
|
</Border.Background> |
|
|
|
</Border> |
|
|
|
<TextBlock Text="{Binding}" /> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
|
|
|
|
<DataTemplate DataType="vm:BindingSetterViewModel"> |
|
|
|
<Panel Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}" IsVisible="{Binding IsVisible}" HorizontalAlignment="Left"> |
|
|
|
<Panel.ContextMenu> |
|
|
|
@ -147,10 +172,10 @@ |
|
|
|
</ContextMenu> |
|
|
|
</Panel.ContextMenu> |
|
|
|
<StackPanel Orientation="Horizontal" Spacing="2"> |
|
|
|
<TextBlock Text="{Binding Name}" FontWeight="SemiBold" /> |
|
|
|
<TextBlock Classes="property-name" PointerPressed="PropertyNamePressed" Text="{Binding Name}" /> |
|
|
|
<TextBlock Text=":" /> |
|
|
|
<TextBlock>{</TextBlock> |
|
|
|
<Rectangle Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}"/> |
|
|
|
<Rectangle Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}" ToolTip.Tip="{Binding ValueTypeTooltip}"/> |
|
|
|
<TextBlock Text="{Binding Path}" /> |
|
|
|
<TextBlock>}</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
@ -158,17 +183,6 @@ |
|
|
|
</Panel> |
|
|
|
</DataTemplate> |
|
|
|
|
|
|
|
<DataTemplate DataType="Color"> |
|
|
|
<StackPanel Orientation="Horizontal" Spacing="2"> |
|
|
|
<Border BorderThickness="1" BorderBrush="Black" Width="8" Height="8"> |
|
|
|
<Border.Background> |
|
|
|
<SolidColorBrush Color="{Binding}" /> |
|
|
|
</Border.Background> |
|
|
|
</Border> |
|
|
|
<TextBlock Text="{Binding}" /> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
|
|
|
|
<DataTemplate DataType="vm:ResourceSetterViewModel"> |
|
|
|
<Panel Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}" IsVisible="{Binding IsVisible}" HorizontalAlignment="Left"> |
|
|
|
<Panel.ContextMenu> |
|
|
|
@ -179,11 +193,11 @@ |
|
|
|
</ContextMenu> |
|
|
|
</Panel.ContextMenu> |
|
|
|
<StackPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left"> |
|
|
|
<TextBlock Text="{Binding Name}" FontWeight="SemiBold" /> |
|
|
|
<TextBlock Classes="property-name" PointerPressed="PropertyNamePressed" Text="{Binding Name}" /> |
|
|
|
<TextBlock Text=":" /> |
|
|
|
<ContentControl Content="{Binding Value}"/> |
|
|
|
<TextBlock>(</TextBlock> |
|
|
|
<Ellipse Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}"/> |
|
|
|
<Ellipse Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}" ToolTip.Tip="{Binding ValueTypeTooltip}"/> |
|
|
|
<TextBlock FontStyle="Italic" Text="{Binding Key}" /> |
|
|
|
<TextBlock>)</TextBlock> |
|
|
|
</StackPanel> |
|
|
|
@ -200,7 +214,7 @@ |
|
|
|
</ContextMenu> |
|
|
|
</Panel.ContextMenu> |
|
|
|
<StackPanel Orientation="Horizontal" Spacing="2"> |
|
|
|
<TextBlock Text="{Binding Name}" FontWeight="SemiBold" /> |
|
|
|
<TextBlock Classes="property-name" PointerPressed="PropertyNamePressed" Text="{Binding Name}" /> |
|
|
|
<TextBlock Text=":" /> |
|
|
|
<ContentControl Content="{Binding Value}"/> |
|
|
|
</StackPanel> |
|
|
|
|