|
|
@@ -7,88 +7,10 @@
|
|
|
x:Name="Main">
|
|
|
|
|
|
<UserControl.Resources>
|
|
|
- <SolidColorBrush x:Key="ThicknessBorderBrush" Color="#666666" />
|
|
|
- <SolidColorBrush x:Key="HighlightBorderBrush" Color="CornflowerBlue" />
|
|
|
- <SolidColorBrush x:Key="SizeGuidelineBrush" Color="#333333" />
|
|
|
- <SolidColorBrush x:Key="MarginBackgroundBrush" Color="#D78965" />
|
|
|
- <SolidColorBrush x:Key="MarginHighlightBrush" Color="#EA966F" />
|
|
|
- <SolidColorBrush x:Key="BorderBackgroundBrush" Color="#E3C381" />
|
|
|
- <SolidColorBrush x:Key="BorderHighlightBrush" Color="#EFCD88" />
|
|
|
- <SolidColorBrush x:Key="PaddingBackgroundBrush" Color="#B8C47F" />
|
|
|
- <SolidColorBrush x:Key="PaddingHighlightBrush" Color="#CEDA8E" />
|
|
|
- <SolidColorBrush x:Key="SizeBackgroundBrush" Color="#88B2BD" />
|
|
|
- <SolidColorBrush x:Key="SizeHighlightBrush" Color="#9ED0DC" />
|
|
|
<conv:BoolToOpacityConverter x:Key="BoolToOpacity" Opacity="0.6"/>
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
- <UserControl.Styles>
|
|
|
- <Style Selector="local|ThicknessEditor">
|
|
|
- <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
- <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
- <Setter Property="BorderThickness" Value="1" />
|
|
|
- <Setter Property="BorderBrush" Value="{StaticResource ThicknessBorderBrush}" />
|
|
|
- <Setter Property="Template">
|
|
|
- <ControlTemplate>
|
|
|
- <Panel>
|
|
|
- <Rectangle x:Name="PART_Background" Classes.no-content-pointerover="{Binding !#PART_ContentPresenter.IsPointerOver}" />
|
|
|
- <Border
|
|
|
- x:Name="PART_Border"
|
|
|
- Classes.no-content-pointerover="{Binding !#PART_ContentPresenter.IsPointerOver}"
|
|
|
- BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
- BorderThickness="{TemplateBinding BorderThickness}">
|
|
|
- <Grid RowDefinitions="Auto,*,Auto" ColumnDefinitions="Auto,*,Auto">
|
|
|
- <Grid.Styles>
|
|
|
- <Style Selector="TextBox.thickness-edit">
|
|
|
- <Setter Property="Background" Value="Transparent" />
|
|
|
- <Setter Property="BorderThickness" Value="0" />
|
|
|
- <Setter Property="Margin" Value="2" />
|
|
|
- <Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
|
- <Setter Property="VerticalAlignment" Value="Stretch" />
|
|
|
- <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
- <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
- <Setter Property="(ScrollViewer.HorizontalScrollBarVisibility)" Value="Disabled" />
|
|
|
- <Setter Property="(ScrollViewer.VerticalScrollBarVisibility)" Value="Disabled" />
|
|
|
- <Setter Property="IsVisible" Value="{Binding $parent[local:ThicknessEditor].IsPresent}" />
|
|
|
- </Style>
|
|
|
- </Grid.Styles>
|
|
|
- <TextBlock IsVisible="{TemplateBinding IsPresent}" Margin="4,0,0,0" Text="{TemplateBinding Header}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" />
|
|
|
- <TextBox Grid.Row="1" Grid.Column="0" Text="{Binding Left, RelativeSource={RelativeSource TemplatedParent}}" Classes="thickness-edit" />
|
|
|
- <TextBox x:Name="Right" Grid.Row="0" Grid.Column="1" Text="{Binding Top, RelativeSource={RelativeSource TemplatedParent}}" Classes="thickness-edit" />
|
|
|
- <TextBox Grid.Row="1" Grid.Column="2" Text="{Binding Right, RelativeSource={RelativeSource TemplatedParent}}" Classes="thickness-edit" />
|
|
|
- <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Bottom, RelativeSource={RelativeSource TemplatedParent}}" Classes="thickness-edit" />
|
|
|
- <ContentPresenter Grid.Row="1" Grid.Column="1"
|
|
|
- Name="PART_ContentPresenter"
|
|
|
- ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
- Content="{TemplateBinding Content}"
|
|
|
- Padding="{TemplateBinding Padding}"
|
|
|
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
- </Panel>
|
|
|
-
|
|
|
- </ControlTemplate>
|
|
|
- </Setter>
|
|
|
- </Style>
|
|
|
-
|
|
|
- <Style Selector="local|ThicknessEditor /template/ Rectangle#PART_Background">
|
|
|
- <Setter Property="Fill" Value="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
|
- </Style>
|
|
|
-
|
|
|
- <Style Selector="local|ThicknessEditor:pointerover /template/ Rectangle#PART_Background.no-content-pointerover">
|
|
|
- <Setter Property="Fill" Value="{Binding Highlight, RelativeSource={RelativeSource TemplatedParent}}" />
|
|
|
- </Style>
|
|
|
-
|
|
|
- <Style Selector="local|ThicknessEditor:pointerover /template/ Border#PART_Border.no-content-pointerover">
|
|
|
- <Setter Property="BorderBrush" Value="{StaticResource HighlightBorderBrush}" />
|
|
|
- </Style>
|
|
|
-
|
|
|
- <Style Selector="local|ThicknessEditor[IsPresent=False]">
|
|
|
- <Setter Property="BorderThickness" Value="0" />
|
|
|
- </Style>
|
|
|
- </UserControl.Styles>
|
|
|
-
|
|
|
- <Grid ColumnDefinitions="*,Auto,280">
|
|
|
+ <Grid ColumnDefinitions="*,Auto,320">
|
|
|
|
|
|
<Grid Grid.Column="0" ColumnDefinitions="*,Auto,Auto,Auto" RowDefinitions="Auto,*">
|
|
|
|
|
|
@@ -130,184 +52,133 @@
|
|
|
|
|
|
<GridSplitter Grid.Column="1" />
|
|
|
|
|
|
- <Grid Grid.Column="2" RowDefinitions="Auto,*, Auto,*,Auto" >
|
|
|
- <TextBlock Grid.Row="0" Text="Layout Visualizer" Margin="4" />
|
|
|
+ <Grid Grid.Column="2" RowDefinitions="*,Auto,*" >
|
|
|
|
|
|
- <Viewbox Grid.Row="1" StretchDirection="DownOnly" >
|
|
|
- <Grid Grid.Row="1" x:Name="LayoutRoot" Margin="8,0,8,8" RowDefinitions="Auto,Auto" ColumnDefinitions="Auto,Auto">
|
|
|
-
|
|
|
- <Grid.Styles>
|
|
|
- <Style Selector="TextBlock.with-constraint">
|
|
|
- <Setter Property="TextDecorations" Value="Underline" />
|
|
|
- </Style>
|
|
|
+ <Grid RowDefinitions="Auto,*" Grid.Row="0">
|
|
|
+ <TextBlock FontWeight="Bold" Grid.Row="0" Text="Layout Visualizer" Margin="4" />
|
|
|
+ <local:LayoutExplorerView Grid.Row="1" DataContext="{Binding Layout}" />
|
|
|
+ </Grid>
|
|
|
|
|
|
- </Grid.Styles>
|
|
|
+ <GridSplitter Grid.Row="1" />
|
|
|
|
|
|
- <Border x:Name="VerticalSize" Grid.Row="0" Grid.Column="1" >
|
|
|
- <TextBlock VerticalAlignment="Center" FontWeight="Bold"
|
|
|
- Classes.with-constraint="{Binding Layout.HeightConstraint, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
|
|
|
- Text="{Binding Layout.Height}"
|
|
|
- ToolTip.Tip="{Binding Layout.HeightConstraint}" />
|
|
|
- </Border>
|
|
|
+ <Grid RowDefinitions="Auto,*,Auto" Grid.Row="2">
|
|
|
|
|
|
- <Border x:Name="HorizontalSize" Grid.Row="1" Grid.Column="0" >
|
|
|
- <TextBlock HorizontalAlignment="Center" FontWeight="Bold"
|
|
|
- Classes.with-constraint="{Binding Layout.WidthConstraint, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
|
|
|
- Text="{Binding Layout.Width}"
|
|
|
- ToolTip.Tip="{Binding Layout.WidthConstraint}" />
|
|
|
- </Border>
|
|
|
+ <Grid Grid.Row="0" Margin="4" RowDefinitions="Auto,Auto">
|
|
|
|
|
|
- <local:ThicknessEditor Grid.Row="0" Grid.Column="0" Header="margin" VerticalAlignment="Top" HorizontalAlignment="Center" Background="{StaticResource MarginBackgroundBrush}" Highlight="{StaticResource MarginHighlightBrush}" Thickness="{Binding Layout.MarginThickness}">
|
|
|
- <local:ThicknessEditor x:Name="BorderArea" Header="border" Background="{StaticResource BorderBackgroundBrush}" Highlight="{StaticResource BorderHighlightBrush}" Thickness="{Binding Layout.BorderThickness}" IsPresent="{Binding Layout.HasBorder}">
|
|
|
- <local:ThicknessEditor x:Name="PaddingArea" Header="padding" Background="{StaticResource PaddingBackgroundBrush}" Highlight="{StaticResource PaddingHighlightBrush}" Thickness="{Binding Layout.PaddingThickness}" IsPresent="{Binding Layout.HasPadding}">
|
|
|
- <Border x:Name="ContentArea" BorderThickness="1" MinWidth="100" MinHeight="16" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
|
|
- <Border.Styles>
|
|
|
- <Style Selector="Border">
|
|
|
- <Setter Property="Background" Value="{StaticResource SizeBackgroundBrush}" />
|
|
|
- <Setter Property="BorderBrush" Value="{StaticResource ThicknessBorderBrush}" />
|
|
|
- </Style>
|
|
|
- <Style Selector="Border:pointerover">
|
|
|
- <Setter Property="Background" Value="{StaticResource SizeHighlightBrush}" />
|
|
|
- <Setter Property="BorderBrush" Value="{StaticResource HighlightBorderBrush}" />
|
|
|
- </Style>
|
|
|
- </Border.Styles>
|
|
|
- <TextBlock Margin="2" HorizontalAlignment="Center" VerticalAlignment="Center" Text="content" />
|
|
|
- </Border>
|
|
|
- </local:ThicknessEditor>
|
|
|
- </local:ThicknessEditor>
|
|
|
- </local:ThicknessEditor>
|
|
|
+ <Grid Grid.Row="0" Margin="2" ColumnDefinitions="Auto,*,Auto,Auto">
|
|
|
+ <TextBlock FontWeight="Bold" Grid.Column="0" Text="{Binding StyleStatus}" VerticalAlignment="Center" />
|
|
|
+ <CheckBox Margin="2,0,0,0" Grid.Column="2" Content="Show inactive" IsChecked="{Binding ShowInactiveStyles}" ToolTip.Tip="Show styles that are currently inactive" />
|
|
|
+ <ToggleButton Margin="2,0,0,0" Grid.Column="3" ToolTip.Tip="Snapshot current styles (Alt+S/Alt+D to enable/disable within debugged window)" Content="Snapshot" IsChecked="{Binding SnapshotStyles}" />
|
|
|
+ </Grid>
|
|
|
|
|
|
- <Canvas Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2">
|
|
|
- <Canvas.Styles>
|
|
|
- <Style Selector="Rectangle">
|
|
|
- <Setter Property="StrokeDashArray" Value="1,3" />
|
|
|
- <Setter Property="Stroke" Value="{StaticResource SizeGuidelineBrush}" />
|
|
|
- <Setter Property="StrokeThickness" Value="1" />
|
|
|
- <Setter Property="IsHitTestVisible" Value="False" />
|
|
|
- </Style>
|
|
|
- </Canvas.Styles>
|
|
|
- <Rectangle x:Name="HorizontalSizeBegin" />
|
|
|
- <Rectangle x:Name="HorizontalSizeEnd" />
|
|
|
- <Rectangle x:Name="VerticalSizeBegin" />
|
|
|
- <Rectangle x:Name="VerticalSizeEnd" />
|
|
|
- </Canvas>
|
|
|
+ <TextBox Grid.Row="1" Margin="2" Grid.Column="0" Watermark="Filter" Text="{Binding StyleFilter}" />
|
|
|
</Grid>
|
|
|
- </Viewbox>
|
|
|
|
|
|
- <Grid Grid.Row="2" Margin="4" RowDefinitions="Auto,Auto">
|
|
|
-
|
|
|
- <Grid Grid.Row="0" Margin="2" ColumnDefinitions="Auto,*,Auto,Auto">
|
|
|
- <TextBlock FontWeight="Bold" Grid.Column="0" Text="{Binding StyleStatus}" VerticalAlignment="Center" />
|
|
|
- <CheckBox Margin="2,0,0,0" Grid.Column="2" Content="Show inactive" IsChecked="{Binding ShowInactiveStyles}" ToolTip.Tip="Show styles that are currently inactive" />
|
|
|
- <ToggleButton Margin="2,0,0,0" Grid.Column="3" ToolTip.Tip="Snapshot current styles (Alt+S/Alt+D to enable/disable within debugged window)" Content="Snapshot" IsChecked="{Binding SnapshotStyles}" />
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <TextBox Grid.Row="1" Margin="2" Grid.Column="0" Watermark="Filter" Text="{Binding StyleFilter}" />
|
|
|
- </Grid>
|
|
|
-
|
|
|
- <ScrollViewer Grid.Row="3" HorizontalScrollBarVisibility="Disabled">
|
|
|
- <ItemsControl Items="{Binding AppliedStyles}" >
|
|
|
- <ItemsControl.ItemTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <Border BorderThickness="0,0,0,1" BorderBrush="#6C6C6C" Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}">
|
|
|
- <Border.IsVisible>
|
|
|
- <MultiBinding Converter="{x:Static BoolConverters.And}">
|
|
|
- <MultiBinding Converter="{x:Static BoolConverters.Or}" >
|
|
|
- <Binding Path="IsActive" />
|
|
|
- <Binding Path="#Main.DataContext.ShowInactiveStyles" />
|
|
|
+ <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled">
|
|
|
+ <ItemsControl Items="{Binding AppliedStyles}" >
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Border BorderThickness="0,0,0,1" BorderBrush="#6C6C6C" Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}">
|
|
|
+ <Border.IsVisible>
|
|
|
+ <MultiBinding Converter="{x:Static BoolConverters.And}">
|
|
|
+ <MultiBinding Converter="{x:Static BoolConverters.Or}" >
|
|
|
+ <Binding Path="IsActive" />
|
|
|
+ <Binding Path="#Main.DataContext.ShowInactiveStyles" />
|
|
|
+ </MultiBinding>
|
|
|
+ <Binding Path="IsVisible" />
|
|
|
</MultiBinding>
|
|
|
- <Binding Path="IsVisible" />
|
|
|
- </MultiBinding>
|
|
|
- </Border.IsVisible>
|
|
|
- <Expander IsExpanded="True" Margin="0" Padding="8,0" ContentTransition="{x:Null}" >
|
|
|
- <Expander.Header>
|
|
|
- <TextBlock Grid.Row="0" Text="{Binding Name}" />
|
|
|
- </Expander.Header>
|
|
|
-
|
|
|
- <ItemsControl Margin="20,0,0,0" Grid.Row="1" Items="{Binding Setters}">
|
|
|
- <ItemsControl.DataTemplates>
|
|
|
-
|
|
|
- <DataTemplate DataType="IBrush">
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="2">
|
|
|
- <Border BorderThickness="1" BorderBrush="Black" Background="{Binding}" Width="8" Height="8"/>
|
|
|
- <TextBlock Text="{Binding}" />
|
|
|
- </StackPanel>
|
|
|
- </DataTemplate>
|
|
|
+ </Border.IsVisible>
|
|
|
+ <Expander IsExpanded="True" Margin="0" Padding="8,0" ContentTransition="{x:Null}" >
|
|
|
+ <Expander.Header>
|
|
|
+ <TextBlock Grid.Row="0" Text="{Binding Name}" />
|
|
|
+ </Expander.Header>
|
|
|
|
|
|
- <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>
|
|
|
+ <ItemsControl Margin="20,0,0,0" Grid.Row="1" Items="{Binding Setters}">
|
|
|
+ <ItemsControl.DataTemplates>
|
|
|
|
|
|
- <DataTemplate DataType="vm:ResourceSetterViewModel">
|
|
|
- <Panel Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}" IsVisible="{Binding IsVisible}" HorizontalAlignment="Left">
|
|
|
- <Panel.ContextMenu>
|
|
|
- <ContextMenu>
|
|
|
- <MenuItem Header="Copy property name" Command="{Binding CopyPropertyName} "/>
|
|
|
- <MenuItem Header="Copy value" Command="{Binding CopyValue} "/>
|
|
|
- <MenuItem Header="Copy resource key" Command="{Binding CopyResourceKey}" />
|
|
|
- </ContextMenu>
|
|
|
- </Panel.ContextMenu>
|
|
|
- <StackPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
|
|
|
- <TextBlock Text="{Binding Name}" FontWeight="SemiBold" />
|
|
|
- <TextBlock Text=":" />
|
|
|
- <ContentControl Content="{Binding Value}"/>
|
|
|
- <TextBlock>(</TextBlock>
|
|
|
- <Ellipse Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}"/>
|
|
|
- <TextBlock FontStyle="Italic" Text="{Binding Key}" />
|
|
|
- <TextBlock>)</TextBlock>
|
|
|
+ <DataTemplate DataType="IBrush">
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="2">
|
|
|
+ <Border BorderThickness="1" BorderBrush="Black" Background="{Binding}" Width="8" Height="8"/>
|
|
|
+ <TextBlock Text="{Binding}" />
|
|
|
</StackPanel>
|
|
|
- <Rectangle Height="1" Fill="#6C6C6C" IsVisible="{Binding !IsActive}" />
|
|
|
- </Panel>
|
|
|
- </DataTemplate>
|
|
|
+ </DataTemplate>
|
|
|
|
|
|
- <DataTemplate DataType="vm:SetterViewModel">
|
|
|
- <Panel Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}" IsVisible="{Binding IsVisible}" HorizontalAlignment="Left">
|
|
|
- <Panel.ContextMenu>
|
|
|
- <ContextMenu>
|
|
|
- <MenuItem Header="Copy property name" Command="{Binding CopyPropertyName} "/>
|
|
|
- <MenuItem Header="Copy value" Command="{Binding CopyValue} "/>
|
|
|
- </ContextMenu>
|
|
|
- </Panel.ContextMenu>
|
|
|
+ <DataTemplate DataType="Color">
|
|
|
<StackPanel Orientation="Horizontal" Spacing="2">
|
|
|
- <TextBlock Text="{Binding Name}" FontWeight="SemiBold" />
|
|
|
- <TextBlock Text=":" />
|
|
|
- <ContentControl Content="{Binding Value}"/>
|
|
|
+ <Border BorderThickness="1" BorderBrush="Black" Width="8" Height="8">
|
|
|
+ <Border.Background>
|
|
|
+ <SolidColorBrush Color="{Binding}" />
|
|
|
+ </Border.Background>
|
|
|
+ </Border>
|
|
|
+ <TextBlock Text="{Binding}" />
|
|
|
</StackPanel>
|
|
|
- <Rectangle Height="1" Fill="#6C6C6C" VerticalAlignment="Center" IsVisible="{Binding !IsActive}" />
|
|
|
- </Panel>
|
|
|
- </DataTemplate>
|
|
|
-
|
|
|
- </ItemsControl.DataTemplates>
|
|
|
- </ItemsControl>
|
|
|
-
|
|
|
- </Expander>
|
|
|
- </Border>
|
|
|
- </DataTemplate>
|
|
|
- </ItemsControl.ItemTemplate>
|
|
|
- </ItemsControl>
|
|
|
- </ScrollViewer>
|
|
|
+ </DataTemplate>
|
|
|
+
|
|
|
+ <DataTemplate DataType="vm:ResourceSetterViewModel">
|
|
|
+ <Panel Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}" IsVisible="{Binding IsVisible}" HorizontalAlignment="Left">
|
|
|
+ <Panel.ContextMenu>
|
|
|
+ <ContextMenu>
|
|
|
+ <MenuItem Header="Copy property name" Command="{Binding CopyPropertyName} "/>
|
|
|
+ <MenuItem Header="Copy value" Command="{Binding CopyValue} "/>
|
|
|
+ <MenuItem Header="Copy resource key" Command="{Binding CopyResourceKey}" />
|
|
|
+ </ContextMenu>
|
|
|
+ </Panel.ContextMenu>
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="2" HorizontalAlignment="Left">
|
|
|
+ <TextBlock Text="{Binding Name}" FontWeight="SemiBold" />
|
|
|
+ <TextBlock Text=":" />
|
|
|
+ <ContentControl Content="{Binding Value}"/>
|
|
|
+ <TextBlock>(</TextBlock>
|
|
|
+ <Ellipse Height="8" Width="8" VerticalAlignment="Center" Fill="{Binding Tint}"/>
|
|
|
+ <TextBlock FontStyle="Italic" Text="{Binding Key}" />
|
|
|
+ <TextBlock>)</TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ <Rectangle Height="1" Fill="#6C6C6C" IsVisible="{Binding !IsActive}" />
|
|
|
+ </Panel>
|
|
|
+ </DataTemplate>
|
|
|
+
|
|
|
+ <DataTemplate DataType="vm:SetterViewModel">
|
|
|
+ <Panel Opacity="{Binding IsActive, Converter={StaticResource BoolToOpacity}}" IsVisible="{Binding IsVisible}" HorizontalAlignment="Left">
|
|
|
+ <Panel.ContextMenu>
|
|
|
+ <ContextMenu>
|
|
|
+ <MenuItem Header="Copy property name" Command="{Binding CopyPropertyName} "/>
|
|
|
+ <MenuItem Header="Copy value" Command="{Binding CopyValue} "/>
|
|
|
+ </ContextMenu>
|
|
|
+ </Panel.ContextMenu>
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="2">
|
|
|
+ <TextBlock Text="{Binding Name}" FontWeight="SemiBold" />
|
|
|
+ <TextBlock Text=":" />
|
|
|
+ <ContentControl Content="{Binding Value}"/>
|
|
|
+ </StackPanel>
|
|
|
+ <Rectangle Height="1" Fill="#6C6C6C" VerticalAlignment="Center" IsVisible="{Binding !IsActive}" />
|
|
|
+ </Panel>
|
|
|
+ </DataTemplate>
|
|
|
+
|
|
|
+ </ItemsControl.DataTemplates>
|
|
|
+ </ItemsControl>
|
|
|
+
|
|
|
+ </Expander>
|
|
|
+ </Border>
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
+ </ScrollViewer>
|
|
|
+
|
|
|
+ <Expander Header="Pseudo Classes" Grid.Row="2">
|
|
|
+ <ItemsControl Items="{Binding PseudoClasses}">
|
|
|
+ <ItemsControl.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <WrapPanel />
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ItemsControl.ItemsPanel>
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox Margin="2" Content="{Binding Name}" IsChecked="{Binding IsActive, Mode=TwoWay}" />
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
+ </Expander>
|
|
|
|
|
|
- <Expander Header="Pseudo Classes" Grid.Row="4">
|
|
|
- <ItemsControl Items="{Binding PseudoClasses}">
|
|
|
- <ItemsControl.ItemsPanel>
|
|
|
- <ItemsPanelTemplate>
|
|
|
- <WrapPanel />
|
|
|
- </ItemsPanelTemplate>
|
|
|
- </ItemsControl.ItemsPanel>
|
|
|
- <ItemsControl.ItemTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <CheckBox Margin="2" Content="{Binding Name}" IsChecked="{Binding IsActive, Mode=TwoWay}" />
|
|
|
- </DataTemplate>
|
|
|
- </ItemsControl.ItemTemplate>
|
|
|
- </ItemsControl>
|
|
|
- </Expander>
|
|
|
+ </Grid>
|
|
|
|
|
|
</Grid>
|
|
|
</Grid>
|