Problem with Gradients/Backgrounds

4 posts, 0 answers
  1. Jesús Manuel
    Jesús Manuel avatar
    6 posts
    Member since:
    Sep 2010

    Posted 11 Oct 2010 Link to this post

    Hi everybody

    I'm designing a "Look & Feel" of an Application, the problem is about Gradients and the Backgrounds.

    I have a button with Gradients in "Normal" and "Hover" status. In the "Press" status I have a Solid Background.
    So when my Button is "Normal" it is ok. When I "Hover" it is ok. But when I "Press" it. The "Normal" and "Hover" Gradient it is Solid now.

    I don't know what is happening.

    What I'm doing wrong?

    I hope you can help me thanks.

  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 15 Oct 2010 Link to this post

    Hi Jesús Manuel,

    Thank you for contacting us. Definitely the issue is related with the defined states. I will be able to be more accurate in my suggestions if I see the theme. Please, send it to me and I will be glad to help further.

    I am looking forward to your reply.

    Kind regards,
    Dobry Zranchev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jesús Manuel
    Jesús Manuel avatar
    6 posts
    Member since:
    Sep 2010

    Posted 15 Oct 2010 Link to this post

    Hello Dobry Zranchev,

    I have solved my problem. How?... I used a linear gradient instead a solid one, simulating a solid color.
    In that way VSB will not get confused at the time of change from a Linear Gradient to a Solid Gradient.

    But I dont know why it happened but I have solved it.

    Anyway I dont know how to send you my theme. Because the attached files only accept images.


    Thanks for reply.

  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 21 Oct 2010 Link to this post

    Hello Jesús Manuel,

    Thank you for writing back.

    Your solution is correct, but the better way to use a solid color for the background is to set the GradientStyle property to Solid.

    If you have other questions, feel free to ask.

    Best wishes,
    Dobry Zranchev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top