Click here to Skip to main content
15,798,066 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i want to change my button background to 2 colors and i wrote code for it but it just add second color how can i Composition more than 2 colors
and this is my code
LinearGradientBrush lgb = new LinearGradientBrush();
GradientStop st = new GradientStop();
st.Offset = 0.1;
st.Color = Colors.Green;
GradientStop st2 = new GradientStop();
st.Offset = 1.0;
st.Color = Colors.Orange;
btnClick.Background = lgb;

With Respectٌ

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900