We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the border style based on the value of SkinStorage.VisualStyle?

In general, the VisualStyle can be applied dynamically to the application. While changing the VisualStyle value, you can perform other operations. The following code example demonstrates how to change the Border background based on the value of SkinStorage.VisualStyle. In the example, the ComboBox is populated with the visual style values like Metro, Office2010Blue, and Office2010Silver. When you choose a style from the ComboBox, the border background is changed based on the selected style.

XAML

 

C#

 

The following screenshots are the output of the code above:

C:\Users\rajkumar.ganesamoort\Pictures\metro.png

Figure 1: Metro Visual Style

C:\Users\rajkumar.ganesamoort\Pictures\Office2010Blue.png

Figure 2: Office2010Blue Visual Style

                                                               

C:\Users\rajkumar.ganesamoort\Pictures\Office2010Silver.png

Figure 3: Office2010Silver Visual Style

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5377 08/19/2015 08/19/2015 WPF General
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon