|
|
@ -152,7 +152,7 @@ |
|
|
Grid.Row="0" |
|
|
Grid.Row="0" |
|
|
Grid.RowSpan="2" |
|
|
Grid.RowSpan="2" |
|
|
Components="{TemplateBinding ColorSpectrumComponents}" |
|
|
Components="{TemplateBinding ColorSpectrumComponents}" |
|
|
HsvColor="{Binding $parent[ColorView].HsvColor}" |
|
|
HsvColor="{Binding HsvColor, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
MinHue="{TemplateBinding MinHue}" |
|
|
MinHue="{TemplateBinding MinHue}" |
|
|
MaxHue="{TemplateBinding MaxHue}" |
|
|
MaxHue="{TemplateBinding MaxHue}" |
|
|
MinSaturation="{TemplateBinding MinSaturation}" |
|
|
MinSaturation="{TemplateBinding MinSaturation}" |
|
|
@ -187,7 +187,7 @@ |
|
|
</Border> |
|
|
</Border> |
|
|
</TabItem.Header> |
|
|
</TabItem.Header> |
|
|
<ListBox Items="{TemplateBinding CustomPaletteColors}" |
|
|
<ListBox Items="{TemplateBinding CustomPaletteColors}" |
|
|
SelectedItem="{Binding $parent[ColorView].Color}" |
|
|
SelectedItem="{Binding Color, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
UseLayoutRounding="False" |
|
|
UseLayoutRounding="False" |
|
|
Margin="12"> |
|
|
Margin="12"> |
|
|
<ListBox.Styles> |
|
|
<ListBox.Styles> |
|
|
@ -421,7 +421,7 @@ |
|
|
TickFrequency="1" |
|
|
TickFrequency="1" |
|
|
ColorComponent="Component1" |
|
|
ColorComponent="Component1" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
HsvColor="{Binding $parent[ColorView].HsvColor}" |
|
|
HsvColor="{Binding HsvColor, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
Margin="12,0,0,0" |
|
|
Margin="12,0,0,0" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Center" /> |
|
|
VerticalAlignment="Center" /> |
|
|
@ -467,7 +467,7 @@ |
|
|
TickFrequency="1" |
|
|
TickFrequency="1" |
|
|
ColorComponent="Component2" |
|
|
ColorComponent="Component2" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
HsvColor="{Binding $parent[ColorView].HsvColor}" |
|
|
HsvColor="{Binding HsvColor, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
Margin="12,0,0,0" |
|
|
Margin="12,0,0,0" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Center" /> |
|
|
VerticalAlignment="Center" /> |
|
|
@ -513,7 +513,7 @@ |
|
|
TickFrequency="1" |
|
|
TickFrequency="1" |
|
|
ColorComponent="Component3" |
|
|
ColorComponent="Component3" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
HsvColor="{Binding $parent[ColorView].HsvColor}" |
|
|
HsvColor="{Binding HsvColor, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
Margin="12,0,0,0" |
|
|
Margin="12,0,0,0" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Center" /> |
|
|
VerticalAlignment="Center" /> |
|
|
@ -554,7 +554,7 @@ |
|
|
TickFrequency="1" |
|
|
TickFrequency="1" |
|
|
ColorComponent="Alpha" |
|
|
ColorComponent="Alpha" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
ColorModel="{TemplateBinding ColorModel, Mode=OneWay}" |
|
|
HsvColor="{Binding $parent[ColorView].HsvColor}" |
|
|
HsvColor="{Binding HsvColor, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
Margin="12,0,0,0" |
|
|
Margin="12,0,0,0" |
|
|
HorizontalAlignment="Stretch" |
|
|
HorizontalAlignment="Stretch" |
|
|
VerticalAlignment="Center" /> |
|
|
VerticalAlignment="Center" /> |
|
|
@ -564,8 +564,8 @@ |
|
|
<!-- Previewer --> |
|
|
<!-- Previewer --> |
|
|
<primitives:ColorPreviewer Grid.Row="1" |
|
|
<primitives:ColorPreviewer Grid.Row="1" |
|
|
ShowAccentColors="True" |
|
|
ShowAccentColors="True" |
|
|
HsvColor="{Binding $parent[ColorView].HsvColor}" |
|
|
HsvColor="{Binding HsvColor, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" |
|
|
Margin="12,0,12,12" /> |
|
|
Margin="12,-5,12,7" /> |
|
|
</Grid> |
|
|
</Grid> |
|
|
</ControlTemplate> |
|
|
</ControlTemplate> |
|
|
</Setter> |
|
|
</Setter> |
|
|
|