Help with Styling Silverlight

2 posts, 0 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 12 Sep 2009 Link to this post

    Hello

    I hope there are some experts in silverlight styles around.

    I have a stackpanel, and I want to set it with a particual lineargradient.

    Usually, it would be easy, but in the same background, there is actually two linear gradient combined

    One goes from left to right with a small offset like 0.05 to 1
    The second one goes from the top to the bottom with an offset of 0.5 to 1

    Check the screen shot to visualize better the expected result : http://img3.imageshack.us/img3/4317/doublelineargradient.jpg

    The thing is that I can't seem to be able to combine two linear gradient.

    Anyone knows how to do that kind of thing (I'd like to avoid the ImageBrush) ?
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 12 Sep 2009 Link to this post

    Hi Pascal,

    Unfortunately, you cannot compose two gradient brushes in Silverlight out of the box. For sure there is no easy way in which you can easily compose radial or linear gradient brushes.

    Thank you for contacting us and we look forward to answering more of your questions.

    Sincerely yours,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
Back to Top