


Supports IUIFramework::GetUICommandProperty and IUIFramework::SetUICommandProperty.ĭefines the selected color value as a COLORREF. Only valid when ColorTemplate has a value of ThemeColors or StandardColors. Property Keyĭefines the label for the Automatic color button. The following table lists the property keys that are associated with the Drop-Down Color Picker control. In some cases, a property can be retrieved through the IUIFramework::GetUICommandProperty method and set with the IUIFramework::SetUICommandProperty method. For example, when a tab is activated and a control revealed in the ribbon UI, or when a tooltip is displayed. The IUICommandHandler::UpdateProperty callback method is not executed, and the application queried for an updated property value, until the property is required by the framework. The invalidation event is handled, and the property updates defined, by the IUICommandHandler::UpdateProperty callback method. Typically, a Drop-Down Color Picker property is updated in the ribbon UI by invalidating the Command associated with the control through a call to the IUIFramework::InvalidateUICommand method. The Ribbon framework defines a collection of property keys for the Drop-Down Color Picker control.
#COLOR UI PICKER CODE#
Īs a specialized control that supports customization, any implemention of the Drop-Down Color Picker that takes advantage of these capabilities requires specialized application code to manage properties and handle any Commands issued by the control. The Drop-Down Color Picker is a valid Button control in a SizeDefinition template. The basic markup required for each Drop-Down Color Picker type is demonstrated in the following examples: The following screen shots illustrate the default Drop-Down Color Picker layouts for the three color templates. Valid only when ColorTemplate has a value of ThemeColors. The number of color chip (or swatch) rows in the Theme colors area. The number of color chip (or swatch) rows in the Standard colors area. The number of color chip (or swatch) rows in the Recent colors area. Valid only when ColorTemplate has a value of ThemeColors or StandardColors.ĭisplays (or hides) the No color button. The name of the associated Command declaration.ĭisplays (or hides) the Automatic button. The number of color chip (or swatch) columns. There are three templates, each of which specifies a control layout and default values for associated attributes and property keys. Layout templates that specify the type of Drop-Down Color Picker. The following table lists the Drop-Down Color Picker attributes. The framework provides a number of element attributes for the Drop-Down Color Picker to expose various levels of functionality. Like all Ribbon controls, the Drop-Down Color Picker is easily implemented and customized through markup.
#COLOR UI PICKER WINDOWS#
The Windows Ribbon framework provides a specialized Drop-Down Color Picker control that exposes a variety of color settings through a split button and customizable drop-down color selector.īy emulating the appearance and functionality of the Microsoft Office color picker, the Ribbon framework is able to both benefit from, and contribute to, consistency and familiarity across a wide range of applications.
