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.

TabControlExt visual styles

Thread ID:

Created:

Updated:

Platform:

Replies:

77036 Oct 9,2008 01:40 AM Oct 10,2008 05:45 AM WPF 2
loading
Tags: Tools
Devon Dorrity
Asked On October 9, 2008 01:40 AM

I am having some trouble finding documentation for setting the visual style of the tabcontrolext. I was wanting to use the office 2007 blue style.


Chad Young
Replied On October 9, 2008 11:13 AM

use the following property in your xaml.

sfshared:SkinStorage.VisualStyle="Office2007Blue"

I have a property on the window for the visual style and then bind controls to that property including the window itself. Then you only have to change the style once and all your elements change.

In that case I have the these properties on the elemtns I want to affect:

1.) DataContext="{Binding Path=VisualStyle, ElementName=mainRibbonWindow, Mode=OneWay}"

2.) shared:SkinStorage.VisualStyle="{Binding}"

You'll have to implement the INotifiyPropertyChanged handlers if you want to change it dynamically.


Balavasanth [Syncfusion]
Replied On October 10, 2008 05:45 AM


Hi Devon,

We really thank Chad Young for sharing his knowledge with us.

Let us explain clearly about SkinStorage logic. If you set SkinStorage for specific control, skin will be applied automatically for all its children elements. For example, If you set SkinStorage for a WindowElement(That is the root element of your application), you do not want to set SkinStorage explicitly for internal elements of the Window. Because. WPF resource lookup logic will take from its parent element. If you do not want to apply the parent element's visual style for its child element, you should set SkinStorage visual style explicitly for your child element. For instance you can set the skin Storage as Office2007 Blue as,

using XAML



Using C# Code:

SkinStorage.SetVisualStyle(TabControlExt1, "Office2007Blue");

Please let me know if you have any questions.

Regards,
Bala.




Thanks for your interest in Syncfusion products.



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.

;