BinaryRibbonBuiltInSkinController
A class that helps in switching between various built-in ribbon skins.
public static partial class BinaryRibbonBuiltInSkinController
Members at a glance
AccentColor | Gets or sets the accent colour the Fluent skins use for the application menu button, the selected tab and the other places Office puts its application colour. |
EffectiveAccentColor | Gets the accent colour the Fluent skins are drawing with now. |
IsWindowsInDarkMode | Gets whether Windows is set to dark mode for applications. |
OfficeBlack | Gets the office2007 Black skin. |
OfficeBlue | Gets the office2007 Blue skin. |
OfficeSilver | Gets the office2007 Silver skin. |
Skin | Gets or sets the RibbonSkin. |
Windows7 | Gets the Windows7 skin. |
ContrastRatio | The WCAG contrast ratio between two colours, from 1 (none) to 21 (black on white). |
RefreshSystemAppearance | Applies the Windows appearance again if a skin that follows it is in force. |
SkinChanged | Occurs after a skin has been applied - when Skin is set, when a Fluent skin is rebuilt because the accent colour or the Windows light or dark setting changed, and when Shared follows a new skin in the skin manager. |
Properties
AccentColor
Gets or sets the accent colour the Fluent skins use for the application menu button, the selected tab and the other places Office puts its application colour.
Value. The accent, or null - the default - to take the one the user chose in Windows.
EffectiveAccentColor
Gets the accent colour the Fluent skins are drawing with now.
Value. AccentColor when the application has set one; otherwise the Windows accent; otherwise a Fluent blue.
IsWindowsInDarkMode
Gets whether Windows is set to dark mode for applications.
Value. true when the user has chosen dark for apps; false when light, or when the setting cannot be read (Windows before 10).
OfficeBlack
Gets the office2007 Black skin.
OfficeBlue
Gets the office2007 Blue skin.
OfficeSilver
Gets the office2007 Silver skin.
Skin
Gets or sets the RibbonSkin.
Windows7
Gets the Windows7 skin.
Methods
ContrastRatio
The WCAG contrast ratio between two colours, from 1 (none) to 21 (black on white).
- a
- One colour.
- b
- The other.
Returns. The ratio; Ratio gives the same.
RefreshSystemAppearance
Applies the Windows appearance again if a skin that follows it is in force.
BinaryRibbonWindow calls this itself when Windows reports that the theme or the accent has changed. An application whose ribbon is not in one calls it from its own handling of WM_SETTINGCHANGE .Events
SkinChanged
Occurs after a skin has been applied - when Skin is set, when a Fluent skin is rebuilt because the accent colour or the Windows light or dark setting changed, and when Shared follows a new skin in the skin manager.