Control appearance | xtd (original) (raw)

xtd is designed to manage controls and dialogs in pure native mode or with CSS styles.

By default all controls are defined with CSS mode (the property xtd::forms::control::control_appearance is set to xtd::forms::control_appearance::standard). xtd defines a CSS theme for each OS so that the emulation of the controls is identical to native controls.

For any control or dialog box, you can decide to use the native version in the following way:

 my_control.control_appearance(xtd::forms::control_appearance::system);
 my_button.flat_style(xtd::forms::flat_style::system);
 my_dialog.dialog_appearance(xtd::forms::dialog_appearance::system);

Remarks

See also