RibbonGallery.CategoryTemplate Property

Gets or sets the DataTemplate that is used to display each item in a RibbonGalleryCategory.

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

Syntax

'Declaration
<BindableAttribute(True)> _
Public Property CategoryTemplate As DataTemplate
[BindableAttribute(true)]
public DataTemplate CategoryTemplate { get; set; }
[BindableAttribute(true)]
public:
property DataTemplate^ CategoryTemplate {
    DataTemplate^ get ();
    void set (DataTemplate^ value);
}
[<BindableAttribute(true)>]
member CategoryTemplate : DataTemplate with get, set
function get CategoryTemplate () : DataTemplate
function set CategoryTemplate (value : DataTemplate)

Property Value

Type: System.Windows.DataTemplate
A template that specifies the visualization of the items. 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

CategoryTemplateProperty

Metadata properties set to true

None

Remarks

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

.NET Framework Security

See Also

Reference

RibbonGallery Class

Microsoft.Windows.Controls.Ribbon Namespace