ColorEditor Example

3 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 12 Apr 2012 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Apr 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 13 Apr 2012 Link to this post

    Hi,

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

    Thanks
    Regards
Back to Top