I want create glossy buttons with GDI+ or Silverlight with C#, any ideas or trickery how to create a glossy button? Somethings like images below:
I am interesting more in GDI+ solutions.
Creating a C# Button To create a Button control, you simply drag and drop a Button control from Toolbox to Form in Visual Studio. After you drag and drop a Button to a Form, the Button looks like Figure 1. Once a Button is on the Form, you can move it around and resize it.
Chris Jackson, Microsoft Appcompat Guy, wrote that for .NET (i.e. C# and GDI+).
Windows Forms Gel Buttons : First Revision
Windows Forms Gel Buttons : Second Revision
Windows Forms Gel Buttons - Third Revision
All the code is there, along with careful consideration of
Example here:
This article demonstrates how to use the
WindowsVistaRenderer
and how it was created...I've found different layers on the button drawing...
A glossy effect is drawn on the north of the button. The green color represents an almost transparent color...
Now, the order in which we draw these layers is critical. That order is:
- Outer border
- Button background color (if button is checked)
- Glossy effect
- Border
- Button fill glossy emphasis
- Inner border
- Glow
- Text and image of the button...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With