System.Windows.Controls.Label templabel = element as System.Windows.Controls.Label; if (tempbutton.Name == "Raised") { System.Windows.Media.Effects.BevelBitmapEffect bev = new System.Windows.Media.Effects.BevelBitmapEffect(); bev.LightAngle = 120; bev.BevelWidth = 10; bev.Relief = 0.2; bev.Smoothness = 0.2; bev.EdgeProfile = System.Windows.Media.Effects.EdgeProfile.CurvedIn; templabel.BitmapEffect = bev; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)