Intersoft.Client.UI.Aqua.UXRibbon Namespace : UXRibbonGalleryCategory Class |
<TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)> <TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)> <TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")> <StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)> <TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)> Public Class UXRibbonGalleryCategory Inherits Intersoft.Client.UI.Controls.StylishLabel Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
Dim instance As UXRibbonGalleryCategory
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)] [TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")] [StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)] [TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)] public class UXRibbonGalleryCategory : Intersoft.Client.UI.Controls.StylishLabel, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
[TemplatePartAttribute(Name="BackgroundElement", Type=System.Windows.Controls.Border)] [TemplatePartAttribute(Name="ContentPresenter", Type=System.Windows.Controls.ContentPresenter)] [TemplatePartAttribute(Name="ImageContainer", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ContentElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="ContentContainer", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [DescriptionAttribute("Represents a control that used to specify a category in UXRibbonGallery control.")] [StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryCategory)] [TemplatePartAttribute(Name="ImageElement", Type=System.Windows.Controls.Image)] public ref class UXRibbonGalleryCategory : public Intersoft.Client.UI.Controls.StylishLabel, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing
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.
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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2