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






Represents a control that displays a collection of related items or Commands in the Ribbon.

Object Model

UXRibbonGallery Class

Syntax

Visual Basic (Declaration) 
<TemplatePartAttribute(Name="ScrollViewerElement", Type=Intersoft.Client.UI.Controls.UXScrollViewer)>
<TemplatePartAttribute(Name="ItemsPresenterElement", Type=System.Windows.Controls.ItemsPresenter)>
<StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryItem)>
<TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)>
<DescriptionAttribute("Represents a control that displays a collection of related items or Commands in the Ribbon.")>
Public Class UXRibbonGallery 
   Inherits Intersoft.Client.Framework.ISSelectionControl
   Implements IControlIFramework, ILicensing, ISelection 
Visual Basic (Usage)Copy Code
Dim instance As UXRibbonGallery
C# 
[TemplatePartAttribute(Name="ScrollViewerElement", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplatePartAttribute(Name="ItemsPresenterElement", Type=System.Windows.Controls.ItemsPresenter)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryItem)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Represents a control that displays a collection of related items or Commands in the Ribbon.")]
public class UXRibbonGallery : Intersoft.Client.Framework.ISSelectionControl, IControlIFramework, ILicensing, ISelection  
Delphi 
public class UXRibbonGallery = class(Intersoft.Client.Framework.ISSelectionControl, IControl, IFramework, ILicensing, ISelection)
JScript 
TemplatePartAttribute(Name="ScrollViewerElement", Type=Intersoft.Client.UI.Controls.UXScrollViewer)
TemplatePartAttribute(Name="ItemsPresenterElement", Type=System.Windows.Controls.ItemsPresenter)
StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryItem)
TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)
DescriptionAttribute("Represents a control that displays a collection of related items or Commands in the Ribbon.")
public class UXRibbonGallery extends Intersoft.Client.Framework.ISSelectionControl implements IControlIFramework, ILicensing, ISelection 
Managed Extensions for C++ 
[TemplatePartAttribute(Name="ScrollViewerElement", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplatePartAttribute(Name="ItemsPresenterElement", Type=System.Windows.Controls.ItemsPresenter)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryItem)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Represents a control that displays a collection of related items or Commands in the Ribbon.")]
public __gc class UXRibbonGallery : public Intersoft.Client.Framework.ISSelectionControl, IControlIFramework, ILicensing, ISelection  
C++/CLI 
[TemplatePartAttribute(Name="ScrollViewerElement", Type=Intersoft.Client.UI.Controls.UXScrollViewer)]
[TemplatePartAttribute(Name="ItemsPresenterElement", Type=System.Windows.Controls.ItemsPresenter)]
[StyleTypedPropertyAttribute(Property="ItemContainerStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGalleryItem)]
[TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)]
[DescriptionAttribute("Represents a control that displays a collection of related items or Commands in the Ribbon.")]
public ref class UXRibbonGallery : public Intersoft.Client.Framework.ISSelectionControl, IControlIFramework, ILicensing, ISelection  

Remarks

UXRibbonGallery is an items control that displays a list of items in horizontal direction. Unlike common items control, the gallery control provides a unique way to present user options graphically on the ribbon. You can use UXRibbonGallery as a standalone control, or embed it as an item of other controls such as UXRibbonDropDownButton and UXRibbonSplitButton.

UXRibbonGallery can be used as a standalone control or used together with supported controls such as UXRibbonDropDownButton, UXRibbonSplitButton and UXRibbonGalleryList.

The following code shows how to use UXRibbonGallery as a standalone control.

XAML Copy Code
<Intersoft:UXRibbonGallery> 
        <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: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 UXRibbonGallery, see UXRibbonGallery Overview.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ItemsControl
                  Intersoft.Client.Framework.ISItemsControl
                     Intersoft.Client.Framework.ISSelectionControl
                        Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonGallery

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.