Microsoft
Software
Hardware
Network
Question : How to make WPF button background color silver?
Dear All,
I'd like to make the backgroud color of my button to be silver, just like the button material is "metal". And it doesn't need to keep shining.
P.S. Simply set in style "<Setter Property="Background" Value="Silver">" cannot give that effect.
Thanks heaps!
Answer : How to make WPF button background color silver?
Silver is just a solid color.
In order to give it a shine, you need to use a LinearGradientBrush in the Button's template which will provide a gradient color to the button.
Here are some links which will provide you with sample templates
http://blogs.msdn.com/b/mg
rayson/arc
hive/2007/
02/16/crea
ting-
a-gla
ss-button-
the-comple
te-tutoria
l.aspx
http://learnwpf.com/Posts/
Post.aspx?
postId=ef7
3ce54-ca51
-
4719-91b5
-1ed7a4ebe
ca2
http://www.smartchitecture
.com/blog/
post/A-Sim
ple-Glossy
-
Button-wi
th-WPF.asp
x
Random Solutions
HELP! Windows SBS 2008 server keeps hanging URGENT!
Filling a TextBox on a Form with Data from a Field from an SQL Database Table in Visual Studio 2008
GridView control scroll bars are not visible on page reload
how can i find all ILO boards on a network
Excel Date Time format conversion yyyy-mmm-dd hh:mm:ss to mm/dd/yyyy hh:mm:ss
I can send e-mail ok but cannot get to Internet via browser
dynamic popup with checklistbox using ajax control toolkit
Setting up my first database driven web site
PHP Array: Only the first item in array is returned
Backup Exec 12 - Catalog issue