Intersoft ClientUI Documentation
UXRibbonGalleryCategory Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXRibbon Namespace : UXRibbonGalleryCategory Class






Represents a control that used to specify a category in UXRibbonGallery control.

Object Model

UXRibbonGalleryCategory Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)>
<TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)>
<TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)>
<TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)>
<DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")>
<StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)>
Public Class UXRibbonGalleryCategory 
   Inherits Intersoft.Client.UI.Controls.StylishLabel
   Implements IControlIFramework, ILicensing 
Visual Basic (Usage)Copy Code
Dim instance As UXRibbonGalleryCategory
C# 
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")]
[StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)]
public class UXRibbonGalleryCategory : Intersoft.Client.UI.Controls.StylishLabel, IControlIFramework, ILicensing  
Delphi 
public class UXRibbonGalleryCategory = class(Intersoft.Client.UI.Controls.StylishLabel, IControl, IFramework, ILicensing)
JScript 
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)
TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)
TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)
TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)
DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")
StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)
public class UXRibbonGalleryCategory extends Intersoft.Client.UI.Controls.StylishLabel implements IControlIFramework, ILicensing 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")]
[StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)]
public __gc class UXRibbonGalleryCategory : public Intersoft.Client.UI.Controls.StylishLabel, IControlIFramework, ILicensing  
C++/CLI 
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)]
[TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)]
[TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)]
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)]
[DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")]
[StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)]
public ref class UXRibbonGalleryCategory : public Intersoft.Client.UI.Controls.StylishLabel, IControlIFramework, ILicensing  

Remarks

UXRibbonGallery also supports grouped items by category by defining the items within UXRibbonGalleryCategory. When defined, it will automatically create a new row next to the specified item.

The following code shows you to configure UXRibbonGalleryCategory in the gallery control.

XAML Copy Code
<Intersoft:UXRibbonGallery> 
        <Intersoft:UXRibbonGalleryCategory Content="Style 1" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph1.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph2.png" /> 
        <Intersoft:UXRibbonGalleryCategory Content="Style 2" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph3.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph4.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph5.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph6.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph7.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph8.png" /> 
        <Intersoft:UXRibbonGalleryItem DisplayMode="Image" ImageWidth="64" ImageHeight="48" Icon="/RibbonSample;component/Assets/Images/Doc/Item/paragraph9.png" /> 
        </Intersoft:UXRibbonGallery> 

The result looks like the following figure.

To learn more about UXRibbonGalleryCategory, see Understanding UXRibbonGalleryCategory.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  Intersoft.Client.Framework.ISContentControl
                     Intersoft.Client.UI.Controls.StylishLabel
                        Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.