|
|
@ -5,7 +5,7 @@ |
|
|
x:CompileBindings="True"> |
|
|
x:CompileBindings="True"> |
|
|
|
|
|
|
|
|
<Styles.Resources> |
|
|
<Styles.Resources> |
|
|
<converters:EnumToBooleanConverter x:Key="EnumToBoolean" /> |
|
|
<converters:EnumToBoolConverter x:Key="EnumToBool" /> |
|
|
<converters:CornerRadiusToDoubleConverter x:Key="TopLeftCornerRadius" Corner="TopLeft" /> |
|
|
<converters:CornerRadiusToDoubleConverter x:Key="TopLeftCornerRadius" Corner="TopLeft" /> |
|
|
<converters:CornerRadiusToDoubleConverter x:Key="BottomRightCornerRadius" Corner="BottomRight" /> |
|
|
<converters:CornerRadiusToDoubleConverter x:Key="BottomRightCornerRadius" Corner="BottomRight" /> |
|
|
</Styles.Resources> |
|
|
</Styles.Resources> |
|
|
@ -25,26 +25,26 @@ |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBoolean}, ConverterParameter={x:Static controls:ColorSpectrumShape.Box}}" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBool}, ConverterParameter={x:Static controls:ColorSpectrumShape.Box}}" |
|
|
RadiusX="{TemplateBinding CornerRadius, Converter={StaticResource TopLeftCornerRadius}}" |
|
|
RadiusX="{TemplateBinding CornerRadius, Converter={StaticResource TopLeftCornerRadius}}" |
|
|
RadiusY="{TemplateBinding CornerRadius, Converter={StaticResource BottomRightCornerRadius}}" /> |
|
|
RadiusY="{TemplateBinding CornerRadius, Converter={StaticResource BottomRightCornerRadius}}" /> |
|
|
<Rectangle x:Name="PART_SpectrumOverlayRectangle" |
|
|
<Rectangle x:Name="PART_SpectrumOverlayRectangle" |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBoolean}, ConverterParameter={x:Static controls:ColorSpectrumShape.Box}}" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBool}, ConverterParameter={x:Static controls:ColorSpectrumShape.Box}}" |
|
|
RadiusX="{TemplateBinding CornerRadius, Converter={StaticResource TopLeftCornerRadius}}" |
|
|
RadiusX="{TemplateBinding CornerRadius, Converter={StaticResource TopLeftCornerRadius}}" |
|
|
RadiusY="{TemplateBinding CornerRadius, Converter={StaticResource BottomRightCornerRadius}}" /> |
|
|
RadiusY="{TemplateBinding CornerRadius, Converter={StaticResource BottomRightCornerRadius}}" /> |
|
|
<Ellipse x:Name="PART_SpectrumEllipse" |
|
|
<Ellipse x:Name="PART_SpectrumEllipse" |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBoolean}, ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" /> |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBool}, ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" /> |
|
|
<Ellipse x:Name="PART_SpectrumOverlayEllipse" |
|
|
<Ellipse x:Name="PART_SpectrumOverlayEllipse" |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBoolean}, ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" /> |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBool}, ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" /> |
|
|
<Canvas x:Name="PART_InputTarget" |
|
|
<Canvas x:Name="PART_InputTarget" |
|
|
Background="Transparent" |
|
|
Background="Transparent" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
@ -73,14 +73,14 @@ |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBoolean}, ConverterParameter={x:Static controls:ColorSpectrumShape.Box}}" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBool}, ConverterParameter={x:Static controls:ColorSpectrumShape.Box}}" |
|
|
RadiusX="{TemplateBinding CornerRadius, Converter={StaticResource TopLeftCornerRadius}}" |
|
|
RadiusX="{TemplateBinding CornerRadius, Converter={StaticResource TopLeftCornerRadius}}" |
|
|
RadiusY="{TemplateBinding CornerRadius, Converter={StaticResource BottomRightCornerRadius}}" /> |
|
|
RadiusY="{TemplateBinding CornerRadius, Converter={StaticResource BottomRightCornerRadius}}" /> |
|
|
<Ellipse x:Name="BorderEllipse" |
|
|
<Ellipse x:Name="BorderEllipse" |
|
|
IsHitTestVisible="False" |
|
|
IsHitTestVisible="False" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
VerticalAlignment="Stretch" |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBoolean}, ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" /> |
|
|
IsVisible="{TemplateBinding Shape, Converter={StaticResource EnumToBool}, ConverterParameter={x:Static controls:ColorSpectrumShape.Ring}}" /> |
|
|
</Panel> |
|
|
</Panel> |
|
|
</Panel> |
|
|
</Panel> |
|
|
</ControlTemplate> |
|
|
</ControlTemplate> |
|
|
|