Hello Sirs,
I'm trying to show the selectedColor/selectedItem in a rectangle which is inside my RadColorPicker.
<Style TargetType="telerik:RadColorPicker"
x:Name="colorPicker"
BasedOn="{StaticResource StandardInputControlStyle}"
>
<Setter Property="Margin" Value="5,0,10,5"></Setter>
<Setter Property="ContentTemplate">
<!-- responsible for the button's design -->
<Setter.Value>
<DataTemplate>
<TextBlock>
<Rectangle HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="108"
Height="23"
x:Name="Rectangle"
Fill="{Binding ElementName=colorPicker, Path=SelectedColor}">
</Rectangle>
</TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
I'm trying to show the selectedColor/selectedItem in a rectangle which is inside my RadColorPicker.
<Style TargetType="telerik:RadColorPicker"
x:Name="colorPicker"
BasedOn="{StaticResource StandardInputControlStyle}"
>
<Setter Property="Margin" Value="5,0,10,5"></Setter>
<Setter Property="ContentTemplate">
<!-- responsible for the button's design -->
<Setter.Value>
<DataTemplate>
<TextBlock>
<Rectangle HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="108"
Height="23"
x:Name="Rectangle"
Fill="{Binding ElementName=colorPicker, Path=SelectedColor}">
</Rectangle>
</TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>