Hallo,
which is the simplest way to switch On/Off UseAppStyling and UseOSThemes for all controls in the application at runtime?
We need three states:- Standard: UseAppStyling is off, UseOSThemes is off.- System: UseAppStyling is off, UseOSThemes is on.- Styles: UseAppStyling is on, UseOSThemes is off.
All of our controls have the default properties in the WindowsForms Designer:- UseAppStyling = true- UseOSThemes = DefaultableBoolean.Default
thank you for the response Mike.
Mike Saltzman said: - Styles: UseAppStyling is on, UseOSThemes is off. This case is easy enough to handle, since the isl will turn off themes by default.
This case is easy enough to handle, since the isl will turn off themes by default.
Does your Style "Office2007Blue" turn off the themes?We are using that style and have problem with some BackColor.We have nowhere altered the BackColor manually. The grey controls are UltraLabels and UltraCheckEditors and are embedded in a UserControl. This picture shows the dialog on Windows Server 2003. On Windows XP are the grey areas yellow.
Mike Saltzman said:- Standard: UseAppStyling is off, UseOSThemes is off.- System: UseAppStyling is off, UseOSThemes is on. To turn off the isl, you would do this: StyleManager.Reset();
To turn off the isl, you would do this: StyleManager.Reset();
Yes, that turns off the isl, but not UseOSThemes.
Mike Saltzman said:I don't think there is any static property to turn off themes on all of the controls. But what you could do is just create a new Style Library in AppStylist. When you do this, AppStylist will prompt you if you want to turn off themes and you click Yes. Then you just save that style library which does nothing but turn off themes and load that when you want themes off and no other styling applied.
I have already tried to make two empty styles. In the first style I have choosed the option "turn off themes", in the second the option "use themes". I do not see any differences.
Hi,
jabor said:- Styles: UseAppStyling is on, UseOSThemes is off.
jabor said:- Standard: UseAppStyling is off, UseOSThemes is off.- System: UseAppStyling is off, UseOSThemes is on.
To turn off the isl, you would do this:
StyleManager.Reset();
I don't think there is any static property to turn off themes on all of the controls. But what you could do is just create a new Style Library in AppStylist. When you do this, AppStylist will prompt you if you want to turn off themes and you click Yes. Then you just save that style library which does nothing but turn off themes and load that when you want themes off and no other styling applied.