commit
90dfa3ba8a
@ -101,7 +101,7 @@
|
|||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem x:Name="EditableTab" Header="Editable">
|
<TabItem Name="EditableTab" Header="Editable">
|
||||||
<Grid Margin="8" RowDefinitions="Auto,*,Auto">
|
<Grid Margin="8" RowDefinitions="Auto,*,Auto">
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
@ -109,14 +109,14 @@
|
|||||||
Spacing="4">
|
Spacing="4">
|
||||||
<TextBlock VerticalAlignment="Center" Text="FontSize:" />
|
<TextBlock VerticalAlignment="Center" Text="FontSize:" />
|
||||||
<Slider
|
<Slider
|
||||||
x:Name="FontSizeSlider"
|
Name="FontSizeSlider"
|
||||||
Width="100"
|
Width="100"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Maximum="30"
|
Maximum="30"
|
||||||
Minimum="5"
|
Minimum="5"
|
||||||
Value="14" />
|
Value="14" />
|
||||||
<CheckBox
|
<CheckBox
|
||||||
x:Name="IsThreeStateCheckBox"
|
Name="IsThreeStateCheckBox"
|
||||||
Content="IsThreeState"
|
Content="IsThreeState"
|
||||||
IsChecked="False" />
|
IsChecked="False" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
<!-- Backgrounds -->
|
<!-- Backgrounds -->
|
||||||
<!-- TODO: Background="{DynamicResource ColorViewTabBackgroundBrush}" -->
|
<!-- TODO: Background="{DynamicResource ColorViewTabBackgroundBrush}" -->
|
||||||
<Border
|
<Border
|
||||||
x:Name="ContentBackgroundBorder"
|
Name="ContentBackgroundBorder"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.RowSpan="2"
|
Grid.RowSpan="2"
|
||||||
Height="{TemplateBinding Height}"
|
Height="{TemplateBinding Height}"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
|
|
||||||
<TabControl
|
<TabControl
|
||||||
x:Name="PART_TabControl"
|
Name="PART_TabControl"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@ -129,7 +129,7 @@
|
|||||||
<ColumnDefinition Width="Auto" MinWidth="32" />
|
<ColumnDefinition Width="Auto" MinWidth="32" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumThirdComponentSlider"
|
Name="ColorSpectrumThirdComponentSlider"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="0,0,12,0"
|
Margin="0,0,12,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
@ -143,7 +143,7 @@
|
|||||||
IsVisible="{TemplateBinding IsColorSpectrumSliderVisible}"
|
IsVisible="{TemplateBinding IsColorSpectrumSliderVisible}"
|
||||||
Orientation="Vertical" />
|
Orientation="Vertical" />
|
||||||
<primitives:ColorSpectrum
|
<primitives:ColorSpectrum
|
||||||
x:Name="ColorSpectrum"
|
Name="ColorSpectrum"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@ -157,7 +157,7 @@
|
|||||||
MinValue="{TemplateBinding MinValue}"
|
MinValue="{TemplateBinding MinValue}"
|
||||||
Shape="{TemplateBinding ColorSpectrumShape}" />
|
Shape="{TemplateBinding ColorSpectrumShape}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumAlphaSlider"
|
Name="ColorSpectrumAlphaSlider"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Margin="12,0,0,0"
|
Margin="12,0,0,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
@ -281,7 +281,7 @@
|
|||||||
CornerRadius="3">
|
CornerRadius="3">
|
||||||
<Grid ColumnDefinitions="1*,1*" IsVisible="{TemplateBinding IsColorModelVisible}">
|
<Grid ColumnDefinitions="1*,1*" IsVisible="{TemplateBinding IsColorModelVisible}">
|
||||||
<RadioButton
|
<RadioButton
|
||||||
x:Name="RgbRadioButton"
|
Name="RgbRadioButton"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
@ -293,7 +293,7 @@
|
|||||||
Mode=TwoWay}"
|
Mode=TwoWay}"
|
||||||
Theme="{DynamicResource ColorViewRadioButton}" />
|
Theme="{DynamicResource ColorViewRadioButton}" />
|
||||||
<RadioButton
|
<RadioButton
|
||||||
x:Name="HsvRadioButton"
|
Name="HsvRadioButton"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
@ -307,7 +307,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_HexTextBox"
|
Name="PART_HexTextBox"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Height="32"
|
Height="32"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -319,7 +319,7 @@
|
|||||||
<!-- Color component editing controls -->
|
<!-- Color component editing controls -->
|
||||||
<!-- Component 1 RGB:Red HSV:Hue -->
|
<!-- Component 1 RGB:Red HSV:Hue -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="Component1NumericUpDown"
|
Name="Component1NumericUpDown"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -334,7 +334,7 @@
|
|||||||
ShowButtonSpinner="False"
|
ShowButtonSpinner="False"
|
||||||
Value="{Binding Value, ElementName=Component1Slider}" />
|
Value="{Binding Value, ElementName=Component1Slider}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="Component1Slider"
|
Name="Component1Slider"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -350,7 +350,7 @@
|
|||||||
TickFrequency="1" />
|
TickFrequency="1" />
|
||||||
<!-- Component 2 RGB:Green HSV:Saturation -->
|
<!-- Component 2 RGB:Green HSV:Saturation -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="Component2NumericUpDown"
|
Name="Component2NumericUpDown"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -365,7 +365,7 @@
|
|||||||
ShowButtonSpinner="False"
|
ShowButtonSpinner="False"
|
||||||
Value="{Binding Value, ElementName=Component2Slider}" />
|
Value="{Binding Value, ElementName=Component2Slider}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="Component2Slider"
|
Name="Component2Slider"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -381,7 +381,7 @@
|
|||||||
TickFrequency="1" />
|
TickFrequency="1" />
|
||||||
<!-- Component 3 RGB:Blue HSV:Value -->
|
<!-- Component 3 RGB:Blue HSV:Value -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="Component3NumericUpDown"
|
Name="Component3NumericUpDown"
|
||||||
Grid.Row="4"
|
Grid.Row="4"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -396,7 +396,7 @@
|
|||||||
ShowButtonSpinner="False"
|
ShowButtonSpinner="False"
|
||||||
Value="{Binding Value, ElementName=Component3Slider}" />
|
Value="{Binding Value, ElementName=Component3Slider}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="Component3Slider"
|
Name="Component3Slider"
|
||||||
Grid.Row="4"
|
Grid.Row="4"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -412,7 +412,7 @@
|
|||||||
TickFrequency="1" />
|
TickFrequency="1" />
|
||||||
<!-- Alpha Component -->
|
<!-- Alpha Component -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="AlphaComponentNumericUpDown"
|
Name="AlphaComponentNumericUpDown"
|
||||||
Grid.Row="5"
|
Grid.Row="5"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -434,7 +434,7 @@
|
|||||||
</NumericUpDown.IsVisible>
|
</NumericUpDown.IsVisible>
|
||||||
</NumericUpDown>
|
</NumericUpDown>
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="AlphaComponentSlider"
|
Name="AlphaComponentSlider"
|
||||||
Grid.Row="5"
|
Grid.Row="5"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -559,7 +559,7 @@
|
|||||||
CornerRadius="8 8 0 0"
|
CornerRadius="8 8 0 0"
|
||||||
ClipToBounds="True">
|
ClipToBounds="True">
|
||||||
<primitives:ColorSpectrum
|
<primitives:ColorSpectrum
|
||||||
x:Name="ColorSpectrum"
|
Name="ColorSpectrum"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Components="{TemplateBinding ColorSpectrumComponents}"
|
Components="{TemplateBinding ColorSpectrumComponents}"
|
||||||
@ -573,7 +573,7 @@
|
|||||||
Shape="{TemplateBinding ColorSpectrumShape}" />
|
Shape="{TemplateBinding ColorSpectrumShape}" />
|
||||||
</Border>
|
</Border>
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumThirdComponentSlider"
|
Name="ColorSpectrumThirdComponentSlider"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -585,7 +585,7 @@
|
|||||||
Orientation="Horizontal" />
|
Orientation="Horizontal" />
|
||||||
|
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumAlphaSlider"
|
Name="ColorSpectrumAlphaSlider"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -612,32 +612,32 @@
|
|||||||
Height="20"
|
Height="20"
|
||||||
CornerRadius="4" />
|
CornerRadius="4" />
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="PART_TextBoxPanel"
|
Name="PART_TextBoxPanel"
|
||||||
Width="106"
|
Width="106"
|
||||||
Margin="4 0 0 0"
|
Margin="4 0 0 0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_HexTextBox"
|
Name="PART_HexTextBox"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
InnerLeftContent="#"
|
InnerLeftContent="#"
|
||||||
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hex}"
|
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hex}"
|
||||||
Text="{TemplateBinding Color, Converter={StaticResource ColorToHexConverter}, Mode=TwoWay}"
|
Text="{TemplateBinding Color, Converter={StaticResource ColorToHexConverter}, Mode=TwoWay}"
|
||||||
MaxLength="8" />
|
MaxLength="8" />
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_RgbaTextBox"
|
Name="PART_RgbaTextBox"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Rgba}"
|
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Rgba}"
|
||||||
Text="{TemplateBinding Color, Converter={StaticResource ColorToTextConverter}, Mode=TwoWay}" />
|
Text="{TemplateBinding Color, Converter={StaticResource ColorToTextConverter}, Mode=TwoWay}" />
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_HsvaTextBox"
|
Name="PART_HsvaTextBox"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hsva}"
|
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hsva}"
|
||||||
Text="{TemplateBinding HsvColor, Converter={StaticResource HsvColorToTextConverter}, Mode=TwoWay}" />
|
Text="{TemplateBinding HsvColor, Converter={StaticResource HsvColorToTextConverter}, Mode=TwoWay}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="AlphaComponentNumericUpDown"
|
Name="AlphaComponentNumericUpDown"
|
||||||
Width="70"
|
Width="70"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -652,7 +652,7 @@
|
|||||||
IsVisible="{TemplateBinding IsAlphaVisible}"
|
IsVisible="{TemplateBinding IsAlphaVisible}"
|
||||||
Value="{Binding #ColorSpectrumAlphaSlider.Value}" />
|
Value="{Binding #ColorSpectrumAlphaSlider.Value}" />
|
||||||
<ComboBox
|
<ComboBox
|
||||||
x:Name="ColorModelComboBox"
|
Name="ColorModelComboBox"
|
||||||
Width="80"
|
Width="80"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource ColorControlCheckeredBackgroundBrush}" />
|
Background="{DynamicResource ColorControlCheckeredBackgroundBrush}" />
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_AccentDecrement2Border"
|
Name="PART_AccentDecrement2Border"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Background="{TemplateBinding HsvColor,
|
Background="{TemplateBinding HsvColor,
|
||||||
Converter={StaticResource AccentColorConverter},
|
Converter={StaticResource AccentColorConverter},
|
||||||
@ -39,7 +39,7 @@
|
|||||||
Converter={StaticResource LeftCornerRadiusFilterConverter}}"
|
Converter={StaticResource LeftCornerRadiusFilterConverter}}"
|
||||||
Tag="-2" />
|
Tag="-2" />
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_AccentDecrement1Border"
|
Name="PART_AccentDecrement1Border"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Background="{TemplateBinding HsvColor,
|
Background="{TemplateBinding HsvColor,
|
||||||
Converter={StaticResource AccentColorConverter},
|
Converter={StaticResource AccentColorConverter},
|
||||||
@ -60,14 +60,14 @@
|
|||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Background="{DynamicResource ColorControlCheckeredBackgroundBrush}" />
|
Background="{DynamicResource ColorControlCheckeredBackgroundBrush}" />
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_AccentIncrement1Border"
|
Name="PART_AccentIncrement1Border"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Background="{TemplateBinding HsvColor,
|
Background="{TemplateBinding HsvColor,
|
||||||
Converter={StaticResource AccentColorConverter},
|
Converter={StaticResource AccentColorConverter},
|
||||||
ConverterParameter='1'}"
|
ConverterParameter='1'}"
|
||||||
Tag="1" />
|
Tag="1" />
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_AccentIncrement2Border"
|
Name="PART_AccentIncrement2Border"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Background="{TemplateBinding HsvColor,
|
Background="{TemplateBinding HsvColor,
|
||||||
Converter={StaticResource AccentColorConverter},
|
Converter={StaticResource AccentColorConverter},
|
||||||
|
@ -15,16 +15,16 @@
|
|||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="{x:Type ColorSpectrum}">
|
<ControlTemplate TargetType="{x:Type ColorSpectrum}">
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="PART_LayoutRoot"
|
Name="PART_LayoutRoot"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="PART_SizingPanel"
|
Name="PART_SizingPanel"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
ClipToBounds="True">
|
ClipToBounds="True">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="PART_SpectrumRectangle"
|
Name="PART_SpectrumRectangle"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -36,7 +36,7 @@
|
|||||||
RadiusY="{TemplateBinding CornerRadius,
|
RadiusY="{TemplateBinding CornerRadius,
|
||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="PART_SpectrumOverlayRectangle"
|
Name="PART_SpectrumOverlayRectangle"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -48,7 +48,7 @@
|
|||||||
RadiusY="{TemplateBinding CornerRadius,
|
RadiusY="{TemplateBinding CornerRadius,
|
||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="PART_SpectrumEllipse"
|
Name="PART_SpectrumEllipse"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -56,7 +56,7 @@
|
|||||||
Converter={StaticResource EnumToBoolConverter},
|
Converter={StaticResource EnumToBoolConverter},
|
||||||
ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" />
|
ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" />
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="PART_SpectrumOverlayEllipse"
|
Name="PART_SpectrumOverlayEllipse"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -64,24 +64,24 @@
|
|||||||
Converter={StaticResource EnumToBoolConverter},
|
Converter={StaticResource EnumToBoolConverter},
|
||||||
ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" />
|
ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" />
|
||||||
<Canvas
|
<Canvas
|
||||||
x:Name="PART_InputTarget"
|
Name="PART_InputTarget"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Background="Transparent">
|
Background="Transparent">
|
||||||
<!-- Note: ToolTip.VerticalOffset is for touch devices to keep the tip above fingers -->
|
<!-- Note: ToolTip.VerticalOffset is for touch devices to keep the tip above fingers -->
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="PART_SelectionEllipsePanel"
|
Name="PART_SelectionEllipsePanel"
|
||||||
ToolTip.Placement="Top"
|
ToolTip.Placement="Top"
|
||||||
ToolTip.VerticalOffset="-10">
|
ToolTip.VerticalOffset="-10">
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="FocusEllipse"
|
Name="FocusEllipse"
|
||||||
Margin="-2"
|
Margin="-2"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
StrokeThickness="2" />
|
StrokeThickness="2" />
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="SelectionEllipse"
|
Name="SelectionEllipse"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -92,7 +92,7 @@
|
|||||||
</Panel>
|
</Panel>
|
||||||
</Canvas>
|
</Canvas>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="BorderRectangle"
|
Name="BorderRectangle"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -104,7 +104,7 @@
|
|||||||
RadiusY="{TemplateBinding CornerRadius,
|
RadiusY="{TemplateBinding CornerRadius,
|
||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="BorderEllipse"
|
Name="BorderEllipse"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
ContentTemplate="{TemplateBinding ContentTemplate}"
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="BorderRectangle"
|
Name="BorderRectangle"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -124,7 +124,7 @@
|
|||||||
<Setter Property="RadioButton.Template">
|
<Setter Property="RadioButton.Template">
|
||||||
<ControlTemplate TargetType="RadioButton">
|
<ControlTemplate TargetType="RadioButton">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Margin="{TemplateBinding Margin}"
|
Margin="{TemplateBinding Margin}"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -174,7 +174,7 @@
|
|||||||
<!-- Backgrounds -->
|
<!-- Backgrounds -->
|
||||||
<!-- TODO: Background="{DynamicResource ColorViewTabBackgroundBrush}" -->
|
<!-- TODO: Background="{DynamicResource ColorViewTabBackgroundBrush}" -->
|
||||||
<Border
|
<Border
|
||||||
x:Name="ContentBackgroundBorder"
|
Name="ContentBackgroundBorder"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.RowSpan="2"
|
Grid.RowSpan="2"
|
||||||
Height="{TemplateBinding Height}"
|
Height="{TemplateBinding Height}"
|
||||||
@ -186,7 +186,7 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
|
|
||||||
<TabControl
|
<TabControl
|
||||||
x:Name="PART_TabControl"
|
Name="PART_TabControl"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@ -223,7 +223,7 @@
|
|||||||
<ColumnDefinition Width="Auto" MinWidth="32" />
|
<ColumnDefinition Width="Auto" MinWidth="32" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumThirdComponentSlider"
|
Name="ColorSpectrumThirdComponentSlider"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="0,0,12,0"
|
Margin="0,0,12,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
@ -237,7 +237,7 @@
|
|||||||
IsVisible="{TemplateBinding IsColorSpectrumSliderVisible}"
|
IsVisible="{TemplateBinding IsColorSpectrumSliderVisible}"
|
||||||
Orientation="Vertical" />
|
Orientation="Vertical" />
|
||||||
<primitives:ColorSpectrum
|
<primitives:ColorSpectrum
|
||||||
x:Name="ColorSpectrum"
|
Name="ColorSpectrum"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@ -251,7 +251,7 @@
|
|||||||
MinValue="{TemplateBinding MinValue}"
|
MinValue="{TemplateBinding MinValue}"
|
||||||
Shape="{TemplateBinding ColorSpectrumShape}" />
|
Shape="{TemplateBinding ColorSpectrumShape}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumAlphaSlider"
|
Name="ColorSpectrumAlphaSlider"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Margin="12,0,0,0"
|
Margin="12,0,0,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
@ -347,7 +347,7 @@
|
|||||||
CornerRadius="3">
|
CornerRadius="3">
|
||||||
<Grid ColumnDefinitions="1*,1*" IsVisible="{TemplateBinding IsColorModelVisible}">
|
<Grid ColumnDefinitions="1*,1*" IsVisible="{TemplateBinding IsColorModelVisible}">
|
||||||
<RadioButton
|
<RadioButton
|
||||||
x:Name="RgbRadioButton"
|
Name="RgbRadioButton"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
@ -359,7 +359,7 @@
|
|||||||
Mode=TwoWay}"
|
Mode=TwoWay}"
|
||||||
Theme="{DynamicResource ColorViewRadioButton}" />
|
Theme="{DynamicResource ColorViewRadioButton}" />
|
||||||
<RadioButton
|
<RadioButton
|
||||||
x:Name="HsvRadioButton"
|
Name="HsvRadioButton"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
VerticalContentAlignment="Center"
|
VerticalContentAlignment="Center"
|
||||||
@ -373,7 +373,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_HexTextBox"
|
Name="PART_HexTextBox"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Height="32"
|
Height="32"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -385,7 +385,7 @@
|
|||||||
<!-- Color component editing controls -->
|
<!-- Color component editing controls -->
|
||||||
<!-- Component 1 RGB:Red HSV:Hue -->
|
<!-- Component 1 RGB:Red HSV:Hue -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="Component1NumericUpDown"
|
Name="Component1NumericUpDown"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -400,7 +400,7 @@
|
|||||||
ShowButtonSpinner="False"
|
ShowButtonSpinner="False"
|
||||||
Value="{Binding Value, ElementName=Component1Slider}" />
|
Value="{Binding Value, ElementName=Component1Slider}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="Component1Slider"
|
Name="Component1Slider"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -416,7 +416,7 @@
|
|||||||
TickFrequency="1" />
|
TickFrequency="1" />
|
||||||
<!-- Component 2 RGB:Green HSV:Saturation -->
|
<!-- Component 2 RGB:Green HSV:Saturation -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="Component2NumericUpDown"
|
Name="Component2NumericUpDown"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -431,7 +431,7 @@
|
|||||||
ShowButtonSpinner="False"
|
ShowButtonSpinner="False"
|
||||||
Value="{Binding Value, ElementName=Component2Slider}" />
|
Value="{Binding Value, ElementName=Component2Slider}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="Component2Slider"
|
Name="Component2Slider"
|
||||||
Grid.Row="3"
|
Grid.Row="3"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -447,7 +447,7 @@
|
|||||||
TickFrequency="1" />
|
TickFrequency="1" />
|
||||||
<!-- Component 3 RGB:Blue HSV:Value -->
|
<!-- Component 3 RGB:Blue HSV:Value -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="Component3NumericUpDown"
|
Name="Component3NumericUpDown"
|
||||||
Grid.Row="4"
|
Grid.Row="4"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -462,7 +462,7 @@
|
|||||||
ShowButtonSpinner="False"
|
ShowButtonSpinner="False"
|
||||||
Value="{Binding Value, ElementName=Component3Slider}" />
|
Value="{Binding Value, ElementName=Component3Slider}" />
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="Component3Slider"
|
Name="Component3Slider"
|
||||||
Grid.Row="4"
|
Grid.Row="4"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -478,7 +478,7 @@
|
|||||||
TickFrequency="1" />
|
TickFrequency="1" />
|
||||||
<!-- Alpha Component -->
|
<!-- Alpha Component -->
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="AlphaComponentNumericUpDown"
|
Name="AlphaComponentNumericUpDown"
|
||||||
Grid.Row="5"
|
Grid.Row="5"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
Width="{DynamicResource ColorViewNumericUpDownWidth}"
|
||||||
@ -500,7 +500,7 @@
|
|||||||
</NumericUpDown.IsVisible>
|
</NumericUpDown.IsVisible>
|
||||||
</NumericUpDown>
|
</NumericUpDown>
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="AlphaComponentSlider"
|
Name="AlphaComponentSlider"
|
||||||
Grid.Row="5"
|
Grid.Row="5"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -584,7 +584,7 @@
|
|||||||
CornerRadius="8 8 0 0"
|
CornerRadius="8 8 0 0"
|
||||||
ClipToBounds="True">
|
ClipToBounds="True">
|
||||||
<primitives:ColorSpectrum
|
<primitives:ColorSpectrum
|
||||||
x:Name="ColorSpectrum"
|
Name="ColorSpectrum"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Components="{TemplateBinding ColorSpectrumComponents}"
|
Components="{TemplateBinding ColorSpectrumComponents}"
|
||||||
@ -598,7 +598,7 @@
|
|||||||
Shape="{TemplateBinding ColorSpectrumShape}" />
|
Shape="{TemplateBinding ColorSpectrumShape}" />
|
||||||
</Border>
|
</Border>
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumThirdComponentSlider"
|
Name="ColorSpectrumThirdComponentSlider"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -610,7 +610,7 @@
|
|||||||
Orientation="Horizontal" />
|
Orientation="Horizontal" />
|
||||||
|
|
||||||
<primitives:ColorSlider
|
<primitives:ColorSlider
|
||||||
x:Name="ColorSpectrumAlphaSlider"
|
Name="ColorSpectrumAlphaSlider"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -637,32 +637,32 @@
|
|||||||
Height="20"
|
Height="20"
|
||||||
CornerRadius="4" />
|
CornerRadius="4" />
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="PART_TextBoxPanel"
|
Name="PART_TextBoxPanel"
|
||||||
Width="106"
|
Width="106"
|
||||||
Margin="4 0 0 0"
|
Margin="4 0 0 0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_HexTextBox"
|
Name="PART_HexTextBox"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
InnerLeftContent="#"
|
InnerLeftContent="#"
|
||||||
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hex}"
|
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hex}"
|
||||||
Text="{TemplateBinding Color, Converter={StaticResource ColorToHexConverter}, Mode=TwoWay}"
|
Text="{TemplateBinding Color, Converter={StaticResource ColorToHexConverter}, Mode=TwoWay}"
|
||||||
MaxLength="8" />
|
MaxLength="8" />
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_RgbaTextBox"
|
Name="PART_RgbaTextBox"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Rgba}"
|
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Rgba}"
|
||||||
Text="{TemplateBinding Color, Converter={StaticResource ColorToTextConverter}, Mode=TwoWay}" />
|
Text="{TemplateBinding Color, Converter={StaticResource ColorToTextConverter}, Mode=TwoWay}" />
|
||||||
<TextBox
|
<TextBox
|
||||||
x:Name="PART_HsvaTextBox"
|
Name="PART_HsvaTextBox"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hsva}"
|
IsVisible="{Binding #ColorModelComboBox.SelectedValue, Converter={StaticResource ToColorModel}, ConverterParameter=Hsva}"
|
||||||
Text="{TemplateBinding HsvColor, Converter={StaticResource HsvColorToTextConverter}, Mode=TwoWay}" />
|
Text="{TemplateBinding HsvColor, Converter={StaticResource HsvColorToTextConverter}, Mode=TwoWay}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
x:Name="AlphaComponentNumericUpDown"
|
Name="AlphaComponentNumericUpDown"
|
||||||
Width="70"
|
Width="70"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -677,7 +677,7 @@
|
|||||||
IsVisible="{TemplateBinding IsAlphaVisible}"
|
IsVisible="{TemplateBinding IsAlphaVisible}"
|
||||||
Value="{Binding #ColorSpectrumAlphaSlider.Value}" />
|
Value="{Binding #ColorSpectrumAlphaSlider.Value}" />
|
||||||
<ComboBox
|
<ComboBox
|
||||||
x:Name="ColorModelComboBox"
|
Name="ColorModelComboBox"
|
||||||
Width="80"
|
Width="80"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
|
@ -34,14 +34,14 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border
|
<Border
|
||||||
x:Name="CellBorder"
|
Name="CellBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid x:Name="PART_CellRoot" ColumnDefinitions="*,Auto">
|
<Grid Name="PART_CellRoot" ColumnDefinitions="*,Auto">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="CurrencyVisual"
|
Name="CurrencyVisual"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Fill="Transparent"
|
Fill="Transparent"
|
||||||
@ -50,7 +50,7 @@
|
|||||||
Stroke="{DynamicResource DataGridCellCurrentBorderBrush}"
|
Stroke="{DynamicResource DataGridCellCurrentBorderBrush}"
|
||||||
StrokeThickness="{DynamicResource DataGridCellVisualStrokeThickness}" />
|
StrokeThickness="{DynamicResource DataGridCellVisualStrokeThickness}" />
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="FocusVisual"
|
Name="FocusVisual"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
IsVisible="False">
|
IsVisible="False">
|
||||||
@ -74,7 +74,7 @@
|
|||||||
Foreground="{TemplateBinding Foreground}" />
|
Foreground="{TemplateBinding Foreground}" />
|
||||||
|
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="InvalidVisualElement"
|
Name="InvalidVisualElement"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@ -116,7 +116,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="DataGridColumnHeader">
|
<ControlTemplate TargetType="DataGridColumnHeader">
|
||||||
<Border
|
<Border
|
||||||
x:Name="HeaderBorder"
|
Name="HeaderBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -152,7 +152,7 @@
|
|||||||
Fill="{TemplateBinding SeparatorBrush}"
|
Fill="{TemplateBinding SeparatorBrush}"
|
||||||
IsVisible="{TemplateBinding AreSeparatorsVisible}" />
|
IsVisible="{TemplateBinding AreSeparatorsVisible}" />
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="FocusVisual"
|
Name="FocusVisual"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
IsVisible="False">
|
IsVisible="False">
|
||||||
@ -203,7 +203,7 @@
|
|||||||
TargetType="DataGridColumnHeader">
|
TargetType="DataGridColumnHeader">
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Grid x:Name="TopLeftHeaderRoot" RowDefinitions="*,*,Auto">
|
<Grid Name="TopLeftHeaderRoot" RowDefinitions="*,*,Auto">
|
||||||
<Border
|
<Border
|
||||||
Grid.RowSpan="2"
|
Grid.RowSpan="2"
|
||||||
BorderBrush="{DynamicResource DataGridLineBrush}"
|
BorderBrush="{DynamicResource DataGridLineBrush}"
|
||||||
@ -227,7 +227,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="PART_Root"
|
Name="PART_Root"
|
||||||
ColumnDefinitions="Auto,*"
|
ColumnDefinitions="Auto,*"
|
||||||
RowDefinitions="*,*,Auto">
|
RowDefinitions="*,*,Auto">
|
||||||
<Border
|
<Border
|
||||||
@ -237,18 +237,18 @@
|
|||||||
BorderThickness="0,0,1,0">
|
BorderThickness="0,0,1,0">
|
||||||
<Grid Background="{TemplateBinding Background}">
|
<Grid Background="{TemplateBinding Background}">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="RowInvalidVisualElement"
|
Name="RowInvalidVisualElement"
|
||||||
Fill="{DynamicResource DataGridCellErrorBrush}"
|
Fill="{DynamicResource DataGridCellErrorBrush}"
|
||||||
Opacity="0"
|
Opacity="0"
|
||||||
Stretch="Fill" />
|
Stretch="Fill" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="BackgroundRectangle"
|
Name="BackgroundRectangle"
|
||||||
Fill="{DynamicResource DataGridRowBackground}"
|
Fill="{DynamicResource DataGridRowBackground}"
|
||||||
Stretch="Fill" />
|
Stretch="Fill" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="HorizontalSeparator"
|
Name="HorizontalSeparator"
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
@ -277,7 +277,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="DataGridRow">
|
<ControlTemplate TargetType="DataGridRow">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RowBorder"
|
Name="RowBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -295,7 +295,7 @@
|
|||||||
Background="{DynamicResource DataGridRowBackground}"
|
Background="{DynamicResource DataGridRowBackground}"
|
||||||
CornerRadius="3" />
|
CornerRadius="3" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="InvalidVisualElement"
|
Name="InvalidVisualElement"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Fill="{DynamicResource DataGridRowErrorBackground}"
|
Fill="{DynamicResource DataGridRowErrorBackground}"
|
||||||
Opacity="0" />
|
Opacity="0" />
|
||||||
@ -419,7 +419,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="CurrencyVisual"
|
Name="CurrencyVisual"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
@ -430,7 +430,7 @@
|
|||||||
Stroke="{DynamicResource DataGridRowGroupHeaderCurrentBorderBrush}"
|
Stroke="{DynamicResource DataGridRowGroupHeaderCurrentBorderBrush}"
|
||||||
StrokeThickness="{DynamicResource DataGridRowGroupHeaderVisualStrokeThickness}" />
|
StrokeThickness="{DynamicResource DataGridRowGroupHeaderVisualStrokeThickness}" />
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="FocusVisual"
|
Name="FocusVisual"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
@ -453,7 +453,7 @@
|
|||||||
DataGridFrozenGrid.IsFrozen="True" />
|
DataGridFrozenGrid.IsFrozen="True" />
|
||||||
|
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="PART_BottomGridLine"
|
Name="PART_BottomGridLine"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="5"
|
Grid.ColumnSpan="5"
|
||||||
@ -482,7 +482,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="DataGrid">
|
<ControlTemplate TargetType="DataGrid">
|
||||||
<Border
|
<Border
|
||||||
x:Name="DataGridBorder"
|
Name="DataGridBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -544,7 +544,7 @@
|
|||||||
Orientation="Horizontal" />
|
Orientation="Horizontal" />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_DisabledVisualElement"
|
Name="PART_DisabledVisualElement"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.RowSpan="4"
|
Grid.RowSpan="4"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="TreeDataGrid">
|
<ControlTemplate TargetType="TreeDataGrid">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -23,7 +23,7 @@
|
|||||||
HorizontalScrollBarVisibility="Hidden"
|
HorizontalScrollBarVisibility="Hidden"
|
||||||
IsVisible="{TemplateBinding ShowColumnHeaders}"
|
IsVisible="{TemplateBinding ShowColumnHeaders}"
|
||||||
VerticalScrollBarVisibility="Disabled">
|
VerticalScrollBarVisibility="Disabled">
|
||||||
<Border x:Name="ColumnHeadersPresenterBorder">
|
<Border Name="ColumnHeadersPresenterBorder">
|
||||||
<TreeDataGridColumnHeadersPresenter
|
<TreeDataGridColumnHeadersPresenter
|
||||||
Name="PART_ColumnHeadersPresenter"
|
Name="PART_ColumnHeadersPresenter"
|
||||||
ElementFactory="{TemplateBinding ElementFactory}"
|
ElementFactory="{TemplateBinding ElementFactory}"
|
||||||
@ -173,7 +173,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border
|
<Border
|
||||||
x:Name="CellBorder"
|
Name="CellBorder"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
@ -205,7 +205,7 @@
|
|||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Background="Transparent">
|
Background="Transparent">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
x:Name="ChevronPath"
|
Name="ChevronPath"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Data="{DynamicResource TreeDataGridItemCollapsedChevronPathData}"
|
Data="{DynamicResource TreeDataGridItemCollapsedChevronPathData}"
|
||||||
@ -222,7 +222,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border
|
<Border
|
||||||
x:Name="CellBorder"
|
Name="CellBorder"
|
||||||
Padding="{TemplateBinding Indent,
|
Padding="{TemplateBinding Indent,
|
||||||
Converter={x:Static conv:IndentConverter.Instance}}"
|
Converter={x:Static conv:IndentConverter.Instance}}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
@ -253,7 +253,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border
|
<Border
|
||||||
x:Name="CellBorder"
|
Name="CellBorder"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
@ -275,7 +275,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border
|
<Border
|
||||||
x:Name="CellBorder"
|
Name="CellBorder"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
@ -20,11 +20,11 @@
|
|||||||
<ControlTemplate TargetType="CalendarDatePicker">
|
<ControlTemplate TargetType="CalendarDatePicker">
|
||||||
<DataValidationErrors>
|
<DataValidationErrors>
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="LayoutRoot"
|
Name="LayoutRoot"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
<Border
|
<Border
|
||||||
x:Name="Background"
|
Name="Background"
|
||||||
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
Orientation="Horizontal"
|
Orientation="Horizontal"
|
||||||
Spacing="2"
|
Spacing="2"
|
||||||
TextElement.FontSize="10">
|
TextElement.FontSize="10">
|
||||||
<Button x:Name="PART_FullScreenButton" Theme="{StaticResource CaptionButton}">
|
<Button Name="PART_FullScreenButton" Theme="{StaticResource CaptionButton}">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Name="PART_FullScreenButtonIcon"
|
Name="PART_FullScreenButtonIcon"
|
||||||
Width="12"
|
Width="12"
|
||||||
@ -51,14 +51,14 @@
|
|||||||
Data="{DynamicResource WindowExpandGlyph}"
|
Data="{DynamicResource WindowExpandGlyph}"
|
||||||
Foreground="{Binding $parent[Button].Foreground}" />
|
Foreground="{Binding $parent[Button].Foreground}" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button x:Name="PART_MinimizeButton" Theme="{StaticResource CaptionButton}">
|
<Button Name="PART_MinimizeButton" Theme="{StaticResource CaptionButton}">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Width="12"
|
Width="12"
|
||||||
Height="12"
|
Height="12"
|
||||||
Data="{DynamicResource WindowMinimizeGlyph}"
|
Data="{DynamicResource WindowMinimizeGlyph}"
|
||||||
Foreground="{Binding $parent[Button].Foreground}" />
|
Foreground="{Binding $parent[Button].Foreground}" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button x:Name="PART_RestoreButton" Theme="{StaticResource CaptionButton}">
|
<Button Name="PART_RestoreButton" Theme="{StaticResource CaptionButton}">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Name="PART_RestoreButtonIcon"
|
Name="PART_RestoreButtonIcon"
|
||||||
Width="12"
|
Width="12"
|
||||||
@ -67,7 +67,7 @@
|
|||||||
Foreground="{Binding $parent[Button].Foreground}" />
|
Foreground="{Binding $parent[Button].Foreground}" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
x:Name="PART_CloseButton"
|
Name="PART_CloseButton"
|
||||||
Background="{DynamicResource CaptionButtonClosePointeroverBackground}"
|
Background="{DynamicResource CaptionButtonClosePointeroverBackground}"
|
||||||
BorderBrush="{DynamicResource CaptionButtonClosePressedBackground}"
|
BorderBrush="{DynamicResource CaptionButtonClosePressedBackground}"
|
||||||
Theme="{StaticResource CaptionButton}">
|
Theme="{StaticResource CaptionButton}">
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -37,7 +37,7 @@
|
|||||||
TemplatedControl.IsTemplateFocusTarget="True"
|
TemplatedControl.IsTemplateFocusTarget="True"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||||
<Border
|
<Border
|
||||||
x:Name="NormalRectangle"
|
Name="NormalRectangle"
|
||||||
Width="{DynamicResource CheckBoxBoxWidth}"
|
Width="{DynamicResource CheckBoxBoxWidth}"
|
||||||
Height="{DynamicResource CheckBoxBoxHeight}"
|
Height="{DynamicResource CheckBoxBoxHeight}"
|
||||||
Background="{DynamicResource CheckBoxDefaultBackground}"
|
Background="{DynamicResource CheckBoxDefaultBackground}"
|
||||||
@ -46,13 +46,13 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
<PathIcon
|
<PathIcon
|
||||||
x:Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="{DynamicResource CheckBoxContentMargin}"
|
Margin="{DynamicResource CheckBoxContentMargin}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -196,7 +196,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -207,7 +207,7 @@
|
|||||||
TemplatedControl.IsTemplateFocusTarget="True"
|
TemplatedControl.IsTemplateFocusTarget="True"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||||
<Border
|
<Border
|
||||||
x:Name="NormalRectangle"
|
Name="NormalRectangle"
|
||||||
Width="{DynamicResource CheckBoxBoxWidth}"
|
Width="{DynamicResource CheckBoxBoxWidth}"
|
||||||
Height="{DynamicResource CheckBoxBoxHeight}"
|
Height="{DynamicResource CheckBoxBoxHeight}"
|
||||||
Background="{DynamicResource CheckBoxDefaultBackground}"
|
Background="{DynamicResource CheckBoxDefaultBackground}"
|
||||||
@ -216,7 +216,7 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
<PathIcon
|
<PathIcon
|
||||||
x:Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
||||||
@ -343,7 +343,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
@ -358,7 +358,7 @@
|
|||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Margin="{DynamicResource CheckBoxBoxMargin}">
|
Margin="{DynamicResource CheckBoxBoxMargin}">
|
||||||
<Border
|
<Border
|
||||||
x:Name="NormalRectangle"
|
Name="NormalRectangle"
|
||||||
Width="{DynamicResource CheckBoxBoxWidth}"
|
Width="{DynamicResource CheckBoxBoxWidth}"
|
||||||
Height="{DynamicResource CheckBoxBoxHeight}"
|
Height="{DynamicResource CheckBoxBoxHeight}"
|
||||||
Background="{DynamicResource CheckBoxDefaultBackground}"
|
Background="{DynamicResource CheckBoxDefaultBackground}"
|
||||||
@ -367,14 +367,14 @@
|
|||||||
CornerRadius="{DynamicResource CheckBoxBoxCornerRadius}"
|
CornerRadius="{DynamicResource CheckBoxBoxCornerRadius}"
|
||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
<PathIcon
|
<PathIcon
|
||||||
x:Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
Foreground="{DynamicResource CheckBoxGlyphFill}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="{DynamicResource CheckBoxContentMargin}"
|
Margin="{DynamicResource CheckBoxContentMargin}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -546,7 +546,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
<DataValidationErrors>
|
<DataValidationErrors>
|
||||||
<Grid ColumnDefinitions="*, Auto">
|
<Grid ColumnDefinitions="*, Auto">
|
||||||
<Border
|
<Border
|
||||||
x:Name="Background"
|
Name="Background"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
@ -59,7 +59,7 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
MinHeight="{TemplateBinding MinHeight}" />
|
MinHeight="{TemplateBinding MinHeight}" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PlaceholderTextBlock"
|
Name="PlaceholderTextBlock"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -71,7 +71,7 @@
|
|||||||
Opacity="0.3"
|
Opacity="0.3"
|
||||||
Text="{TemplateBinding PlaceholderText}" />
|
Text="{TemplateBinding PlaceholderText}" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="ContentPresenter"
|
Name="ContentPresenter"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -88,7 +88,7 @@
|
|||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
Theme="{DynamicResource InnerIconButton}" />
|
Theme="{DynamicResource InnerIconButton}" />
|
||||||
<Border
|
<Border
|
||||||
x:Name="DropDownOverlay"
|
Name="DropDownOverlay"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Width="30"
|
Width="30"
|
||||||
Margin="0,1,1,1"
|
Margin="0,1,1,1"
|
||||||
@ -97,7 +97,7 @@
|
|||||||
IsVisible="False" />
|
IsVisible="False" />
|
||||||
|
|
||||||
<PathIcon
|
<PathIcon
|
||||||
x:Name="DropDownGlyph"
|
Name="DropDownGlyph"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Width="12"
|
Width="12"
|
||||||
Height="12"
|
Height="12"
|
||||||
@ -119,7 +119,7 @@
|
|||||||
PlacementTarget="Background"
|
PlacementTarget="Background"
|
||||||
WindowManagerAddShadowHint="False">
|
WindowManagerAddShadowHint="False">
|
||||||
<Border
|
<Border
|
||||||
x:Name="PopupBorder"
|
Name="PopupBorder"
|
||||||
Margin="0,4"
|
Margin="0,4"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<ControlTemplate TargetType="DataValidationErrors">
|
<ControlTemplate TargetType="DataValidationErrors">
|
||||||
<DockPanel LastChildFill="True">
|
<DockPanel LastChildFill="True">
|
||||||
<ContentControl
|
<ContentControl
|
||||||
x:Name="InlineDataValidationContentControl"
|
Name="InlineDataValidationContentControl"
|
||||||
Margin="0,4,0,0"
|
Margin="0,4,0,0"
|
||||||
Content="{Binding (DataValidationErrors.Errors)}"
|
Content="{Binding (DataValidationErrors.Errors)}"
|
||||||
ContentTemplate="{TemplateBinding ErrorTemplate}"
|
ContentTemplate="{TemplateBinding ErrorTemplate}"
|
||||||
|
@ -193,7 +193,7 @@
|
|||||||
FontWeight="{TemplateBinding FontWeight}"
|
FontWeight="{TemplateBinding FontWeight}"
|
||||||
Text="{DynamicResource STRING_DATEPICKER_YEAR_TEXT}" />
|
Text="{DynamicResource STRING_DATEPICKER_YEAR_TEXT}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="PART_FirstSpacer"
|
Name="PART_FirstSpacer"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Width="1"
|
Width="1"
|
||||||
Height="{TemplateBinding Height}"
|
Height="{TemplateBinding Height}"
|
||||||
@ -201,7 +201,7 @@
|
|||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="PART_SecondSpacer"
|
Name="PART_SecondSpacer"
|
||||||
Grid.Column="3"
|
Grid.Column="3"
|
||||||
Width="1"
|
Width="1"
|
||||||
Height="{TemplateBinding Height}"
|
Height="{TemplateBinding Height}"
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
<Border Background="{TemplateBinding Background}">
|
<Border Background="{TemplateBinding Background}">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="ContentPresenter"
|
Name="ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
@ -22,16 +22,16 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="DropDownButton">
|
<ControlTemplate TargetType="DropDownButton">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid x:Name="InnerGrid" ColumnDefinitions="*,Auto">
|
<Grid Name="InnerGrid" ColumnDefinitions="*,Auto">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -41,7 +41,7 @@
|
|||||||
Foreground="{TemplateBinding Foreground}"
|
Foreground="{TemplateBinding Foreground}"
|
||||||
RecognizesAccessKey="True" />
|
RecognizesAccessKey="True" />
|
||||||
<PathIcon
|
<PathIcon
|
||||||
x:Name="DropDownGlyph"
|
Name="DropDownGlyph"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Width="12"
|
Width="12"
|
||||||
Height="12"
|
Height="12"
|
||||||
|
@ -28,9 +28,9 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="Expander">
|
<ControlTemplate TargetType="Expander">
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<LayoutTransformControl x:Name="ExpanderHeaderLayoutContainer" Margin="{DynamicResource ExpanderHeaderMargin}">
|
<LayoutTransformControl Name="ExpanderHeaderLayoutContainer" Margin="{DynamicResource ExpanderHeaderMargin}">
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
x:Name="ExpanderHeader"
|
Name="ExpanderHeader"
|
||||||
Padding="{DynamicResource ExpanderHeaderPadding}"
|
Padding="{DynamicResource ExpanderHeaderPadding}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
@ -64,12 +64,12 @@
|
|||||||
</LayoutTransformControl>
|
</LayoutTransformControl>
|
||||||
<LayoutTransformControl Name="ExpanderContentLayoutContainer" MinHeight="1">
|
<LayoutTransformControl Name="ExpanderContentLayoutContainer" MinHeight="1">
|
||||||
<Border
|
<Border
|
||||||
x:Name="ExpanderContent"
|
Name="ExpanderContent"
|
||||||
MinHeight="2"
|
MinHeight="2"
|
||||||
BorderBrush="{DynamicResource ExpanderSeparatorBorderBrush}"
|
BorderBrush="{DynamicResource ExpanderSeparatorBorderBrush}"
|
||||||
BorderThickness="0,0,0,1">
|
BorderThickness="0,0,0,1">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Margin="{DynamicResource ExpanderContentMargin}"
|
Margin="{DynamicResource ExpanderContentMargin}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
@ -15,20 +15,20 @@
|
|||||||
<Setter Property="Background" Value="{DynamicResource HyperlinkButtonDefaultBackground}" />
|
<Setter Property="Background" Value="{DynamicResource HyperlinkButtonDefaultBackground}" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="HyperlinkButton">
|
<ControlTemplate TargetType="HyperlinkButton">
|
||||||
<Grid ColumnDefinitions="Auto,*" x:Name="RootGrid">
|
<Grid ColumnDefinitions="Auto,*" Name="RootGrid">
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
Margin="0,0,8,0"
|
Margin="0,0,8,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
x:Name="IconGrid">
|
Name="IconGrid">
|
||||||
<Border
|
<Border
|
||||||
Background="{DynamicResource HyperlinkButtonDefaultBackground}"
|
Background="{DynamicResource HyperlinkButtonDefaultBackground}"
|
||||||
Height="{DynamicResource HyperlinkButtonIconHeight}"
|
Height="{DynamicResource HyperlinkButtonIconHeight}"
|
||||||
Opacity="0"
|
Opacity="0"
|
||||||
UseLayoutRounding="False"
|
UseLayoutRounding="False"
|
||||||
Width="{DynamicResource HyperlinkButtonIconWidth}"
|
Width="{DynamicResource HyperlinkButtonIconWidth}"
|
||||||
x:Name="BackgroundRectangle" />
|
Name="BackgroundRectangle" />
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Data="{DynamicResource HyperlinkButtonLinkGlyph}"
|
Data="{DynamicResource HyperlinkButtonLinkGlyph}"
|
||||||
Foreground="{DynamicResource HyperlinkButtonForeground}"
|
Foreground="{DynamicResource HyperlinkButtonForeground}"
|
||||||
@ -46,7 +46,7 @@
|
|||||||
Padding="0,0,0,0"
|
Padding="0,0,0,0"
|
||||||
RecognizesAccessKey="True"
|
RecognizesAccessKey="True"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
x:Name="ContentPresenter" />
|
Name="ContentPresenter" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
@ -297,7 +297,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="ListBoxItem">
|
<ControlTemplate TargetType="ListBoxItem">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Margin="{TemplateBinding Margin}"
|
Margin="{TemplateBinding Margin}"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -546,7 +546,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="ListBoxItem">
|
<ControlTemplate TargetType="ListBoxItem">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Margin="{TemplateBinding Margin}"
|
Margin="{TemplateBinding Margin}"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -623,18 +623,18 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="ListBoxItem">
|
<ControlTemplate TargetType="ListBoxItem">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid x:Name="RootGrid" ColumnDefinitions="Auto,*">
|
<Grid Name="RootGrid" ColumnDefinitions="Auto,*">
|
||||||
<Grid
|
<Grid
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="0,0,0,0"
|
Margin="0,0,0,0"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Border
|
<Border
|
||||||
x:Name="NormalRectangle"
|
Name="NormalRectangle"
|
||||||
Width="{DynamicResource ListBoxItemCheckBoxWidth}"
|
Width="{DynamicResource ListBoxItemCheckBoxWidth}"
|
||||||
Height="{DynamicResource ListBoxItemCheckBoxHeight}"
|
Height="{DynamicResource ListBoxItemCheckBoxHeight}"
|
||||||
Background="{DynamicResource ListBoxItemCheckDefaultBackground}"
|
Background="{DynamicResource ListBoxItemCheckDefaultBackground}"
|
||||||
@ -649,7 +649,7 @@
|
|||||||
Foreground="{DynamicResource ListBoxItemCheckGlyphFill}" />
|
Foreground="{DynamicResource ListBoxItemCheckGlyphFill}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="ContentPresenter"
|
Name="ContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -805,13 +805,13 @@
|
|||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="RootGrid"
|
Name="RootGrid"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
ColumnDefinitions="Auto,*">
|
ColumnDefinitions="Auto,*">
|
||||||
<Grid Grid.Column="0" VerticalAlignment="Top">
|
<Grid Grid.Column="0" VerticalAlignment="Top">
|
||||||
<Border
|
<Border
|
||||||
x:Name="NormalRectangle"
|
Name="NormalRectangle"
|
||||||
Width="{DynamicResource ListBoxItemCheckBoxWidth}"
|
Width="{DynamicResource ListBoxItemCheckBoxWidth}"
|
||||||
Height="{DynamicResource ListBoxItemCheckBoxHeight}"
|
Height="{DynamicResource ListBoxItemCheckBoxHeight}"
|
||||||
Background="{DynamicResource ListBoxItemCheckDefaultBackground}"
|
Background="{DynamicResource ListBoxItemCheckDefaultBackground}"
|
||||||
@ -827,7 +827,7 @@
|
|||||||
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="ContentPresenter"
|
Name="ContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="8,0,0,0"
|
Margin="8,0,0,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
DockPanel.Dock="Left"
|
DockPanel.Dock="Left"
|
||||||
Theme="{DynamicResource CardBorder}">
|
Theme="{DynamicResource CardBorder}">
|
||||||
<ListBox
|
<ListBox
|
||||||
x:Name="PART_QuickLinks"
|
Name="PART_QuickLinks"
|
||||||
Focusable="False"
|
Focusable="False"
|
||||||
ItemsSource="{Binding QuickLinks}"
|
ItemsSource="{Binding QuickLinks}"
|
||||||
SelectedIndex="{Binding QuickLinksSelectedIndex}">
|
SelectedIndex="{Binding QuickLinksSelectedIndex}">
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</ListBox>
|
</ListBox>
|
||||||
</Border>
|
</Border>
|
||||||
<DockPanel
|
<DockPanel
|
||||||
x:Name="NavBar"
|
Name="NavBar"
|
||||||
Margin="8,8,8,0"
|
Margin="8,8,8,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
DockPanel.Dock="Top">
|
DockPanel.Dock="Top">
|
||||||
@ -63,7 +63,7 @@
|
|||||||
Data="{DynamicResource ManagedFileChooserUpButtonGlyph}"
|
Data="{DynamicResource ManagedFileChooserUpButtonGlyph}"
|
||||||
Foreground="{DynamicResource ManagedFileChooserIconForeground}" />
|
Foreground="{DynamicResource ManagedFileChooserIconForeground}" />
|
||||||
</Button>
|
</Button>
|
||||||
<TextBox x:Name="Location" Text="{Binding Location}">
|
<TextBox Name="Location" Text="{Binding Location}">
|
||||||
<TextBox.KeyBindings>
|
<TextBox.KeyBindings>
|
||||||
<KeyBinding Command="{Binding EnterPressed}" Gesture="Enter" />
|
<KeyBinding Command="{Binding EnterPressed}" Gesture="Enter" />
|
||||||
</TextBox.KeyBindings>
|
</TextBox.KeyBindings>
|
||||||
@ -88,7 +88,7 @@
|
|||||||
DockPanel.Dock="Left"
|
DockPanel.Dock="Left"
|
||||||
IsChecked="{Binding ShowHiddenFiles}" />
|
IsChecked="{Binding ShowHiddenFiles}" />
|
||||||
<UniformGrid
|
<UniformGrid
|
||||||
x:Name="Finalize"
|
Name="Finalize"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Rows="1">
|
Rows="1">
|
||||||
<Button
|
<Button
|
||||||
|
@ -173,7 +173,7 @@
|
|||||||
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||||||
RecognizesAccessKey="True" />
|
RecognizesAccessKey="True" />
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PART_InputGestureText"
|
Name="PART_InputGestureText"
|
||||||
Grid.Column="3"
|
Grid.Column="3"
|
||||||
Margin="{DynamicResource MenuItemInputGestureTextMargin}"
|
Margin="{DynamicResource MenuItemInputGestureTextMargin}"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_RootBorder"
|
Name="PART_RootBorder"
|
||||||
Padding="{DynamicResource NotificationCardPadding}"
|
Padding="{DynamicResource NotificationCardPadding}"
|
||||||
BoxShadow="{DynamicResource NotificationCardBoxShadows}"
|
BoxShadow="{DynamicResource NotificationCardBoxShadows}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
<ControlTemplate TargetType="ProgressBar">
|
<ControlTemplate TargetType="ProgressBar">
|
||||||
<Grid ColumnDefinitions="Auto, *, Auto" RowDefinitions="Auto, *, Auto">
|
<Grid ColumnDefinitions="Auto, *, Auto" RowDefinitions="Auto, *, Auto">
|
||||||
<Border
|
<Border
|
||||||
x:Name="ProgressBarRoot"
|
Name="ProgressBarRoot"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
@ -113,31 +113,31 @@
|
|||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Panel>
|
<Panel>
|
||||||
<Panel x:Name="DeterminateRoot" Opacity="1">
|
<Panel Name="DeterminateRoot" Opacity="1">
|
||||||
<Panel.Transitions>
|
<Panel.Transitions>
|
||||||
<Transitions>
|
<Transitions>
|
||||||
<DoubleTransition Property="Opacity" Duration="0:0:0.197" />
|
<DoubleTransition Property="Opacity" Duration="0:0:0.197" />
|
||||||
</Transitions>
|
</Transitions>
|
||||||
</Panel.Transitions>
|
</Panel.Transitions>
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_Indicator"
|
Name="PART_Indicator"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Foreground}"
|
Background="{TemplateBinding Foreground}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
<Panel x:Name="IndeterminateRoot" Opacity="0">
|
<Panel Name="IndeterminateRoot" Opacity="0">
|
||||||
<Panel.Transitions>
|
<Panel.Transitions>
|
||||||
<Transitions>
|
<Transitions>
|
||||||
<DoubleTransition Property="Opacity" Duration="0:0:0.197" />
|
<DoubleTransition Property="Opacity" Duration="0:0:0.197" />
|
||||||
</Transitions>
|
</Transitions>
|
||||||
</Panel.Transitions>
|
</Panel.Transitions>
|
||||||
<Border
|
<Border
|
||||||
x:Name="IndeterminateProgressBarIndicator"
|
Name="IndeterminateProgressBarIndicator"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Foreground}"
|
Background="{TemplateBinding Foreground}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
<Border
|
<Border
|
||||||
x:Name="IndeterminateProgressBarIndicator2"
|
Name="IndeterminateProgressBarIndicator2"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Foreground}"
|
Background="{TemplateBinding Foreground}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
@ -145,7 +145,7 @@
|
|||||||
</Panel>
|
</Panel>
|
||||||
</Border>
|
</Border>
|
||||||
<LayoutTransformControl
|
<LayoutTransformControl
|
||||||
x:Name="PART_LayoutTransformControl"
|
Name="PART_LayoutTransformControl"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="0"
|
Margin="0"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="RadioButton">
|
<ControlTemplate TargetType="RadioButton">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -38,7 +38,7 @@
|
|||||||
TemplatedControl.IsTemplateFocusTarget="True"
|
TemplatedControl.IsTemplateFocusTarget="True"
|
||||||
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="OuterEllipse"
|
Name="OuterEllipse"
|
||||||
Width="{DynamicResource RadioButtonIconRadius}"
|
Width="{DynamicResource RadioButtonIconRadius}"
|
||||||
Height="{DynamicResource RadioButtonIconRadius}"
|
Height="{DynamicResource RadioButtonIconRadius}"
|
||||||
Fill="{DynamicResource RadioButtonUncheckIconDefaultBackground}"
|
Fill="{DynamicResource RadioButtonUncheckIconDefaultBackground}"
|
||||||
@ -47,7 +47,7 @@
|
|||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
|
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Width="{DynamicResource RadioButtonGlyphRadius}"
|
Width="{DynamicResource RadioButtonGlyphRadius}"
|
||||||
Height="{DynamicResource RadioButtonGlyphRadius}"
|
Height="{DynamicResource RadioButtonGlyphRadius}"
|
||||||
Fill="{DynamicResource RadioButtonCheckGlyphFill}"
|
Fill="{DynamicResource RadioButtonCheckGlyphFill}"
|
||||||
@ -55,7 +55,7 @@
|
|||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
</Panel>
|
</Panel>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="{DynamicResource RadioButtonContentMargin}"
|
Margin="{DynamicResource RadioButtonContentMargin}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -166,7 +166,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="RadioButton">
|
<ControlTemplate TargetType="RadioButton">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Margin="{TemplateBinding Margin}"
|
Margin="{TemplateBinding Margin}"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -221,7 +221,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="RadioButton">
|
<ControlTemplate TargetType="RadioButton">
|
||||||
<Border
|
<Border
|
||||||
x:Name="RootBorder"
|
Name="RootBorder"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
@ -236,7 +236,7 @@
|
|||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Margin="{DynamicResource RadioButtonIconMargin}">
|
Margin="{DynamicResource RadioButtonIconMargin}">
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="OuterEllipse"
|
Name="OuterEllipse"
|
||||||
Width="{DynamicResource RadioButtonIconRadius}"
|
Width="{DynamicResource RadioButtonIconRadius}"
|
||||||
Height="{DynamicResource RadioButtonIconRadius}"
|
Height="{DynamicResource RadioButtonIconRadius}"
|
||||||
Fill="{DynamicResource RadioButtonUncheckIconDefaultBackground}"
|
Fill="{DynamicResource RadioButtonUncheckIconDefaultBackground}"
|
||||||
@ -245,7 +245,7 @@
|
|||||||
UseLayoutRounding="False" />
|
UseLayoutRounding="False" />
|
||||||
|
|
||||||
<Ellipse
|
<Ellipse
|
||||||
x:Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Width="{DynamicResource RadioButtonGlyphRadius}"
|
Width="{DynamicResource RadioButtonGlyphRadius}"
|
||||||
Height="{DynamicResource RadioButtonGlyphRadius}"
|
Height="{DynamicResource RadioButtonGlyphRadius}"
|
||||||
Fill="{DynamicResource RadioButtonCheckGlyphFill}"
|
Fill="{DynamicResource RadioButtonCheckGlyphFill}"
|
||||||
@ -254,7 +254,7 @@
|
|||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="{DynamicResource RadioButtonContentMargin}"
|
Margin="{DynamicResource RadioButtonContentMargin}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@ -372,7 +372,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="RadioButton">
|
<ControlTemplate TargetType="RadioButton">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="RepeatButton">
|
<ControlTemplate TargetType="RepeatButton">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
<ControlTemplate TargetType="Slider">
|
<ControlTemplate TargetType="Slider">
|
||||||
<DataValidationErrors>
|
<DataValidationErrors>
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="SliderContainer"
|
Name="SliderContainer"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
RowDefinitions="Auto,Auto,Auto">
|
RowDefinitions="Auto,Auto,Auto">
|
||||||
@ -153,7 +153,7 @@
|
|||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<DataValidationErrors>
|
<DataValidationErrors>
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="SliderContainer"
|
Name="SliderContainer"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
Background="{DynamicResource SliderContainerBackground}"
|
Background="{DynamicResource SliderContainerBackground}"
|
||||||
ColumnDefinitions="Auto,Auto,Auto">
|
ColumnDefinitions="Auto,Auto,Auto">
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@ -69,7 +69,7 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Button
|
<Button
|
||||||
x:Name="PART_SecondaryButton"
|
Name="PART_SecondaryButton"
|
||||||
Padding="4,0"
|
Padding="4,0"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
@ -87,14 +87,14 @@
|
|||||||
Foreground="{Binding $parent[Button].Foreground}" />
|
Foreground="{Binding $parent[Button].Foreground}" />
|
||||||
</Button>
|
</Button>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
x:Name="SeparatorBorder"
|
Name="SeparatorBorder"
|
||||||
Width="{DynamicResource SplitButtonSeparatorWidth}"
|
Width="{DynamicResource SplitButtonSeparatorWidth}"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
DockPanel.Dock="Right"
|
DockPanel.Dock="Right"
|
||||||
Fill="{TemplateBinding BorderBrush}"
|
Fill="{TemplateBinding BorderBrush}"
|
||||||
StrokeThickness="0" />
|
StrokeThickness="0" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="PART_PrimaryButton"
|
Name="PART_PrimaryButton"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
ZIndex="100">
|
ZIndex="100">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_PanePresenter"
|
Name="PART_PanePresenter"
|
||||||
Content="{TemplateBinding Pane}"
|
Content="{TemplateBinding Pane}"
|
||||||
ContentTemplate="{TemplateBinding PaneTemplate}" />
|
ContentTemplate="{TemplateBinding PaneTemplate}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<Panel Name="ContentRoot">
|
<Panel Name="ContentRoot">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Content="{TemplateBinding Content}"
|
Content="{TemplateBinding Content}"
|
||||||
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
@ -112,7 +112,7 @@
|
|||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
ZIndex="100">
|
ZIndex="100">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_PanePresenter"
|
Name="PART_PanePresenter"
|
||||||
Content="{TemplateBinding Pane}"
|
Content="{TemplateBinding Pane}"
|
||||||
ContentTemplate="{TemplateBinding PaneTemplate}" />
|
ContentTemplate="{TemplateBinding PaneTemplate}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
@ -124,7 +124,7 @@
|
|||||||
|
|
||||||
<Panel Name="ContentRoot">
|
<Panel Name="ContentRoot">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Content="{TemplateBinding Content}"
|
Content="{TemplateBinding Content}"
|
||||||
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
||||||
<Rectangle Name="LightDismissLayer" IsVisible="False" />
|
<Rectangle Name="LightDismissLayer" IsVisible="False" />
|
||||||
|
@ -164,7 +164,7 @@
|
|||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
ColumnDefinitions="*, Auto">
|
ColumnDefinitions="*, Auto">
|
||||||
<Button
|
<Button
|
||||||
x:Name="PART_FlyoutButton"
|
Name="PART_FlyoutButton"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Width="242"
|
Width="242"
|
||||||
@ -185,12 +185,12 @@
|
|||||||
<Grid Name="PART_FlyoutButtonContentGrid" Grid.Column="0">
|
<Grid Name="PART_FlyoutButtonContentGrid" Grid.Column="0">
|
||||||
<!-- Ignore col defs here, set in code -->
|
<!-- Ignore col defs here, set in code -->
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_FirstPickerHost"
|
Name="PART_FirstPickerHost"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PART_HourTextBlock"
|
Name="PART_HourTextBlock"
|
||||||
Padding="12,0"
|
Padding="12,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -208,12 +208,12 @@
|
|||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_SecondPickerHost"
|
Name="PART_SecondPickerHost"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PART_MinuteTextBlock"
|
Name="PART_MinuteTextBlock"
|
||||||
Padding="12,0"
|
Padding="12,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -231,12 +231,12 @@
|
|||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_ThirdPickerHost"
|
Name="PART_ThirdPickerHost"
|
||||||
Grid.Column="4"
|
Grid.Column="4"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PART_SecondTextBlock"
|
Name="PART_SecondTextBlock"
|
||||||
Padding="12,0"
|
Padding="12,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
@ -254,12 +254,12 @@
|
|||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_FourthPickerHost"
|
Name="PART_FourthPickerHost"
|
||||||
Grid.Column="6"
|
Grid.Column="6"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch">
|
VerticalAlignment="Stretch">
|
||||||
<TextBlock
|
<TextBlock
|
||||||
x:Name="PART_PeriodTextBlock"
|
Name="PART_PeriodTextBlock"
|
||||||
Padding="12,0"
|
Padding="12,0"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
|
@ -10,16 +10,16 @@
|
|||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Panel HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="Stretch">
|
<Panel HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="Stretch">
|
||||||
<Panel
|
<Panel
|
||||||
x:Name="PART_MouseTracker"
|
Name="PART_MouseTracker"
|
||||||
Height="1"
|
Height="1"
|
||||||
VerticalAlignment="Top" />
|
VerticalAlignment="Top" />
|
||||||
<Panel x:Name="PART_Container">
|
<Panel Name="PART_Container">
|
||||||
<Border
|
<Border
|
||||||
x:Name="PART_Background"
|
Name="PART_Background"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
IsHitTestVisible="False" />
|
IsHitTestVisible="False" />
|
||||||
<CaptionButtons
|
<CaptionButtons
|
||||||
x:Name="PART_CaptionButtons"
|
Name="PART_CaptionButtons"
|
||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
Foreground="{TemplateBinding Foreground}" />
|
Foreground="{TemplateBinding Foreground}" />
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="ToggleButton">
|
<ControlTemplate TargetType="ToggleButton">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
BackgroundSizing="{TemplateBinding BackgroundSizing}"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
RowDefinitions="Auto,*"
|
RowDefinitions="Auto,*"
|
||||||
ColumnDefinitions="Auto, *">
|
ColumnDefinitions="Auto, *">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Grid.Row="0" Grid.Column="0"
|
Grid.Row="0" Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Margin="{DynamicResource ToggleSwitchHeaderMargin}"
|
Margin="{DynamicResource ToggleSwitchHeaderMargin}"
|
||||||
@ -49,7 +49,7 @@
|
|||||||
RecognizesAccessKey="True" />
|
RecognizesAccessKey="True" />
|
||||||
|
|
||||||
<Border
|
<Border
|
||||||
x:Name="SwitchBackgroundBorder"
|
Name="SwitchBackgroundBorder"
|
||||||
Grid.Row="1" Grid.Column="0"
|
Grid.Row="1" Grid.Column="0"
|
||||||
TemplatedControl.IsTemplateFocusTarget="True"
|
TemplatedControl.IsTemplateFocusTarget="True"
|
||||||
Width="{DynamicResource ToggleSwitchDefaultWidth}"
|
Width="{DynamicResource ToggleSwitchDefaultWidth}"
|
||||||
@ -63,22 +63,22 @@
|
|||||||
</Transitions>
|
</Transitions>
|
||||||
</Border.Transitions>
|
</Border.Transitions>
|
||||||
<Canvas
|
<Canvas
|
||||||
x:Name="PART_SwitchKnob"
|
Name="PART_SwitchKnob"
|
||||||
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
HorizontalAlignment="Left">
|
HorizontalAlignment="Left">
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="PART_MovingKnobs"
|
Name="PART_MovingKnobs"
|
||||||
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
Margin="{DynamicResource ToggleSwitchIndicatorDefaultMargin}">
|
Margin="{DynamicResource ToggleSwitchIndicatorDefaultMargin}">
|
||||||
<Border
|
<Border
|
||||||
x:Name="SwitchKnobIndicator"
|
Name="SwitchKnobIndicator"
|
||||||
Background="White"
|
Background="White"
|
||||||
BoxShadow="0 0 1 1 #222E3238"
|
BoxShadow="0 0 1 1 #222E3238"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
<Arc
|
<Arc
|
||||||
x:Name="SwitchKnobLoadingIndicator"
|
Name="SwitchKnobLoadingIndicator"
|
||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
StrokeThickness="2"
|
StrokeThickness="2"
|
||||||
StartAngle="0"
|
StartAngle="0"
|
||||||
@ -113,7 +113,7 @@
|
|||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_OnContentPresenter"
|
Name="PART_OnContentPresenter"
|
||||||
Grid.Row="1" Grid.Column="1"
|
Grid.Row="1" Grid.Column="1"
|
||||||
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
@ -122,7 +122,7 @@
|
|||||||
Content="{TemplateBinding OnContent}"
|
Content="{TemplateBinding OnContent}"
|
||||||
ContentTemplate="{TemplateBinding OnContentTemplate}" />
|
ContentTemplate="{TemplateBinding OnContentTemplate}" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_OffContentPresenter"
|
Name="PART_OffContentPresenter"
|
||||||
Grid.Row="1" Grid.Column="1"
|
Grid.Row="1" Grid.Column="1"
|
||||||
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
@ -257,15 +257,15 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
Cursor="Hand">
|
Cursor="Hand">
|
||||||
<Panel>
|
<Panel>
|
||||||
<Panel x:Name="PART_SwitchKnob" />
|
<Panel Name="PART_SwitchKnob" />
|
||||||
<Panel x:Name="PART_MovingKnobs" />
|
<Panel Name="PART_MovingKnobs" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_OnContentPresenter"
|
Name="PART_OnContentPresenter"
|
||||||
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
||||||
Content="{TemplateBinding OnContent}"
|
Content="{TemplateBinding OnContent}"
|
||||||
ContentTemplate="{TemplateBinding OnContentTemplate}" />
|
ContentTemplate="{TemplateBinding OnContentTemplate}" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_OffContentPresenter"
|
Name="PART_OffContentPresenter"
|
||||||
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
Margin="{DynamicResource ToggleSwitchOnContentMargin}"
|
||||||
Content="{TemplateBinding OffContent}"
|
Content="{TemplateBinding OffContent}"
|
||||||
ContentTemplate="{TemplateBinding OffContentTemplate}" />
|
ContentTemplate="{TemplateBinding OffContentTemplate}" />
|
||||||
@ -291,7 +291,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="ToggleSwitch">
|
<ControlTemplate TargetType="ToggleSwitch">
|
||||||
<Border
|
<Border
|
||||||
x:Name="SwitchBackgroundBorder"
|
Name="SwitchBackgroundBorder"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
Cursor="Hand"
|
Cursor="Hand"
|
||||||
Width="{DynamicResource ToggleSwitchDefaultWidth}"
|
Width="{DynamicResource ToggleSwitchDefaultWidth}"
|
||||||
@ -307,24 +307,24 @@
|
|||||||
<Grid
|
<Grid
|
||||||
ColumnDefinitions="*,*">
|
ColumnDefinitions="*,*">
|
||||||
<Canvas
|
<Canvas
|
||||||
x:Name="PART_SwitchKnob"
|
Name="PART_SwitchKnob"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
HorizontalAlignment="Left">
|
HorizontalAlignment="Left">
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="PART_MovingKnobs"
|
Name="PART_MovingKnobs"
|
||||||
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Width="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
Height="{DynamicResource ToggleSwitchIndicatorDefaultWidth}"
|
||||||
Margin="{DynamicResource ToggleSwitchIndicatorDefaultMargin}">
|
Margin="{DynamicResource ToggleSwitchIndicatorDefaultMargin}">
|
||||||
<Border
|
<Border
|
||||||
x:Name="SwitchKnobIndicator"
|
Name="SwitchKnobIndicator"
|
||||||
Background="White"
|
Background="White"
|
||||||
BoxShadow="0 0 1 1 #222E3238"
|
BoxShadow="0 0 1 1 #222E3238"
|
||||||
CornerRadius="100" />
|
CornerRadius="100" />
|
||||||
<Arc
|
<Arc
|
||||||
x:Name="SwitchKnobLoadingIndicator"
|
Name="SwitchKnobLoadingIndicator"
|
||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
StrokeThickness="2"
|
StrokeThickness="2"
|
||||||
StartAngle="0"
|
StartAngle="0"
|
||||||
@ -357,7 +357,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Canvas>
|
</Canvas>
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_OnContentPresenter"
|
Name="PART_OnContentPresenter"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
@ -366,7 +366,7 @@
|
|||||||
Content="{TemplateBinding OnContent}"
|
Content="{TemplateBinding OnContent}"
|
||||||
ContentTemplate="{TemplateBinding OnContentTemplate}" />
|
ContentTemplate="{TemplateBinding OnContentTemplate}" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="PART_OffContentPresenter"
|
Name="PART_OffContentPresenter"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user