RibbonGallery.CategoryStyle Property

Gets or sets the style that is applied to the RibbonGalleryCategory element generated for each item.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property CategoryStyle As Style
public Style CategoryStyle { get; set; }
public:
property Style^ CategoryStyle {
    Style^ get ();
    void set (Style^ value);
}
member CategoryStyle : Style with get, set
function get CategoryStyle () : Style
function set CategoryStyle (value : Style)

Property Value

Type: System.Windows.Style
The style that is applied to the container element generated for each item. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

CategoryStyleProperty

Metadata properties set to true

None

Remarks

If this property value is not nulla null reference (Nothing in Visual Basic), it overrides the ItemsControl.ItemContainerStyle property.

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace