xtd 0.2.0
Loading...
Searching...
No Matches

◆ visual_styles() [2/2]

static void xtd::forms::application::visual_styles ( bool  value)
static

Sets a value that indicates whether visual styles are enabled for the application.

Parameters
valuetrue if visual styles are enabled; otherwise, false.
Exceptions
xtd::invalid_operation_exceptionIf this method is called after xtd::forms::application::run.
Remarks
This method enables visual styles for the application. Visual styles are the colors, fonts, and other visual elements that form an operating system theme. Controls will draw with visual styles if the control and the operating system support it. To have an effect, enable_visual_styles() must be called before creating any controls in the application; typically, enable_visual_styles() is the first line in the Main function. A separate manifest is not required to enable visual styles when calling enable_visual_styles().
This method has an effect only on Windows.