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.
Unfortunately, activation email could not send to your email. Please try again.

How to set and user-change visual theme of the application?

Thread ID:

Created:

Updated:

Platform:

Replies:

105122 Sep 10,2012 04:27 PM Oct 5,2012 02:58 AM WPF 1
loading
Tags: Tools
Jaroslav Hybl
Asked On September 10, 2012 04:27 PM

We are using syncfusion:RibbonWindow as the main window of the application, several other standard windows, for separate dialogs and warning messages etc. and some own user controls.

We would like to set a theme that would be applied  on ALL parts of the application and could be change by user in the running application. 

Right now we have following code  in the app.xaml file:
<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary                     Source="/syncfusion.Shared.WPF;component/SkinManager/Office2010SilverStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

and this in heading of the main window:
....
syncfusion:SkinStorage.VisualStyle="Office2010Silver"
....

This sets the Office2010Silver theme for the main window and for most of its parts right. But for other windows the style is not applied well (for example they have white background and the buttons have standard WPF style.

Is there a way to set the theme for all parts of the application and change it by one user request?


Antony Xavier D [Syncfusion]
Replied On October 5, 2012 02:58 AM

Hi Jaroslav,

We are not providing the skin support for standard windows. So we recommend to use the Chromeless Window instead of standard window and the Chromeless Window has complete skin support.

We have prepared a sample based on your requirement in that we have applied the styles for Chromeless Window and Ribbon Window.

Please find the sample attached,

Regards,

Antony.



VisualStyleSample_6d6f0780.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;