DesktopCustomSwitch.PreProcessStyle Event
Overrides style attribute on the button right before rendering. The override is for current rendering and alter base properties of the button.
Parameters
- style
- Handle to style. You can manipulate this in the event, doing so will affect current rendering but not base properties of the button.
The style you get here will already have resolved if it is the default style or dark mode style depending on if System is in dark mode and if you had it set to have different dark mode style or not. - isEnabled
- True if the rendering is for Enabled button else false.
- isDarkMode
- True if we are rendering in dark mode. On Linux this parameter is always false.
- isHighContrastMode
- True if the macOS is set to high contrast mode. On Windows and Linux this parameter is always false.
Remarks
See Also
DesktopCustomSwitch Control