This is a migrated thread and some comments may be shown as answers.

ColorEditor Example

2 Answers 39 Views
ColorEditor
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 12 Apr 2012, 01:17 PM
Hi,

i tried your ColorEditor Example. But it's not working like your wpf example. There is nor error but the car.png will not
change the color. Ist there any example ?!

Thanks
Regards
Rene

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 13 Apr 2012, 07:41 AM
Hi Wigl Wagl,

 I am not sure I understand you correctly. I can assure you that in WPF and in SL the ColorEditor works the same way.
As for the picture in the demo, I'll try to explain how its background is being changed. This picture is specially edited in Photoshop so that you can see the Rectangle that stays behind:

<Rectangle Grid.Row="1" Width="350" Height="257" Margin="0 1 0 0">
            <Rectangle.Fill>
                <SolidColorBrush x:Name="CarBrush" Color="{Binding SelectedColor, ElementName=coloreditor, Mode=TwoWay}" />
            </Rectangle.Fill>
        </Rectangle>
        <Image Source="../Images/ColorEditor/car.png" Stretch="None" Width="350" Height="259"
                Grid.Row="1" Margin="0 -1 0 0" />
You can see that the Fill of the Rectangle is bound to the Color in ColorEditor.
Hope this info helps you.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
ITA
Top achievements
Rank 1
answered on 13 Apr 2012, 07:57 AM
Hi,

thanks a lot, i checked the example and found the png-file. Things are so easy in telerik..

Thanks
Regards
Tags
ColorEditor
Asked by
ITA
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
ITA
Top achievements
Rank 1
Share this question
or