ClassRadGalleryElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadGalleryElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IDropDownMenuOwner, IItemsOwner
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadGalleryElement
Derived Classes:
Implements:
Inherited Members
Constructors
RadGalleryElement()
Declaration
public RadGalleryElement()
Fields
MaxDropDownColumnsProperty
Declaration
public static RadProperty MaxDropDownColumnsProperty
Field Value
MinDropDownColumnsProperty
Declaration
public static RadProperty MinDropDownColumnsProperty
Field Value
Properties
DownButton
Gets tne RadImageButtonElement that represents the down button in the gallery element.
Declaration
[Browsable(false)]
public RadImageButtonElement DownButton { get; }
Property Value
DropDownInheritsThemeClassName
Gets or sets value indicating whether DropDownMenu will have the same class name as the owner control or its own. True means that the same class name will be used as the control that opened the dropdown.
Declaration
public bool DropDownInheritsThemeClassName { get; set; }
Property Value
Implements
DropDownSizingMode
Declaration
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Property Value
FilterEnabled
Gets or sets a value indicating whether group filtering is enbled when filters are defined.
Declaration
[Browsable(true)]
public bool FilterEnabled { get; set; }
Property Value
Filters
Gets a collection representing the group filters defined in this gallery.
Declaration
public RadItemOwnerCollection Filters { get; }
Property Value
GalleryDropDown
Gets an instance of the RadGalleryDropDownclass that represents the popup control which hosts the RadGalleryPopupElement displayed to the user when he/she clicks on the drop-down button of the gallery.
Declaration
[Browsable(false)]
public RadGalleryDropDown GalleryDropDown { get; }
Property Value
GalleryPopupElement
Gets an instance of the RadGalleryPopupElementclass that represents the main element put in the RadGalleryDropDown when it is shown to the user. This element holds the content of the gallery, as well as some additional elements like sizing grip etc.
Declaration
[Browsable(false)]
public RadGalleryPopupElement GalleryPopupElement { get; }
Property Value
Groups
Gets a collection representing the groups contained in this gallery.
Declaration
public RadItemOwnerCollection Groups { get; }
Property Value
InRibbonBorder
Gets the BorderPrimitiveinstance that represents the Gallery Element's border.
Declaration
[Browsable(false)]
public BorderPrimitive InRibbonBorder { get; }
Property Value
InRibbonFill
Gets the FillPrimitiveinstance that represents the Gallery Element's fill.
Declaration
[Browsable(false)]
public FillPrimitive InRibbonFill { get; }
Property Value
IsDroppedDown
Returns whether the gallery is currently dropped down.
Declaration
[Browsable(false)]
public bool IsDroppedDown { get; }
Property Value
ItemSelection
Gets or sets a value indicating whether the selection of the gallery items is enabled or not.
Declaration
[Browsable(true)]
public bool ItemSelection { get; set; }
Property Value
Items
Gets a collection representing the items contained in this gallery.
Declaration
[RadNewItem("", false)]
public RadItemOwnerCollection Items { get; }
Property Value
Implements
MaxColumns
Gets or sets the maximum number of columns to be shown in the in-ribbon portion of the gallery.
MaxDropDownColumns
Gets or sets the maximum number of columns to be shown in the drop-down portion of the gallery.
MaxRows
Gets or sets the maximum number of rows to be shown in the in-ribbon portion of the gallery.
MinDropDownColumns
Gets or sets the minimum number of columns to be shown in the drop-down portion of the gallery.
PopupButton
Gets tne RadImageButtonElement that represents the show popup button in the gallery element.
Declaration
[Browsable(false)]
public RadImageButtonElement PopupButton { get; }
Property Value
SelectedItem
Gets or sets the currently selected item.
Declaration
[Browsable(false)]
public RadGalleryItem SelectedItem { get; set; }
Property Value
Tools
Gets the Tools menu items collection where you can add and remove items from the Tools part of the gallery
Declaration
[RadEditItemsAction]
public RadItemOwnerCollection Tools { get; }
Property Value
UpButton
Gets tne RadImageButtonElement that represents the up button in the gallery element.
Declaration
[Browsable(false)]
public RadImageButtonElement UpButton { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CloseDropDown()
Declaration
public void CloseDropDown()
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
DisposeManagedResources()
Releases managed resources used by this element.
Declaration
protected override void DisposeManagedResources()
Overrides
InitializeFields()
Initializes the fields of this instance with their default values.
Declaration
protected override void InitializeFields()
Overrides
OnBitStateChanged(long, bool, bool)
Notifies the object for a change in its bit state.
OnDropDownClosed(RadPopupClosedEventArgs)
Raises the DropDownClosed event.
Declaration
protected virtual void OnDropDownClosed(RadPopupClosedEventArgs e)
Parameters
e
OnDropDownClosing(RadPopupClosingEventArgs)
Raises the DropDownClosing event.
Declaration
protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)
Parameters
e
OnDropDownOpened(EventArgs)
Raises the DropDownOpened event.
Declaration
protected virtual void OnDropDownOpened(EventArgs e)
Parameters
e
OnDropDownOpening(CancelEventArgs)
Raises the DropDownOpening event.
Declaration
protected virtual void OnDropDownOpening(CancelEventArgs e)
Parameters
e
OnGalleryItemHover(GalleryItemHoverEventArgs)
Raises the GalleryItemHover event.
Declaration
protected virtual void OnGalleryItemHover(GalleryItemHoverEventArgs e)
Parameters
e
OnMouseWheel(MouseEventArgs)
Raises the MouseWheel event.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
OnTunnelEvent(RadElement, RoutedEventArgs)
Called when the tunnel phase of a routed event occurs.
Declaration
protected override void OnTunnelEvent(RadElement sender, RoutedEventArgs args)
Parameters
sender
The element that originally raised the event.
args
The routed event arguments.
Overrides
ScrollLineDown()
Declaration
public void ScrollLineDown()
ScrollLineUp()
Declaration
public void ScrollLineUp()
ShowDropDown()
Declaration
public void ShowDropDown()
Events
DropDownClosed
Occurs when the drop-down window has closed.
Declaration
[Browsable(true)]
public event RadPopupClosedEventHandler DropDownClosed
Event Value
DropDownClosing
Occurs when the drop-down is about to be closed.
Declaration
[Browsable(true)]
public event RadPopupClosingEventHandler DropDownClosing
Event Value
DropDownOpened
Occurs when the drop-down has opened.
Declaration
[Browsable(true)]
public event EventHandler DropDownOpened
Event Value
DropDownOpening
Occurs when the drop-down is opening.
Declaration
[Browsable(true)]
public event CancelEventHandler DropDownOpening
Event Value
GalleryItemHover
Occurs when the mouse pointer rests on the gallery item.
Declaration
[Browsable(true)]
public event GalleryItemHoverEventHandler GalleryItemHover
Event Value