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: November 16, 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?

Platform: WPF |
Control: General |
Published Date: August 19, 2015 |
Last Revised Date: August 19, 2015
Tags: general

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

 

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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