C# Класс Fluent.GalleryPanel

Represents panel for Gallery, InRibbonGallery, ComboBox with grouping and filtering capabilities
Наследование: System.Windows.Controls.VirtualizingStackPanel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
FilterProperty System.Windows.DependencyProperty
GroupByProperty System.Windows.DependencyProperty
GroupStyleProperty System.Windows.DependencyProperty
IsGroupedProperty System.Windows.DependencyProperty
ItemContainerGeneratorProperty System.Windows.DependencyProperty
ItemHeightProperty System.Windows.DependencyProperty
ItemWidthProperty System.Windows.DependencyProperty
MaxItemsInRowProperty System.Windows.DependencyProperty
MinItemsInRowProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
GalleryPanel ( ) : System

Default constructor

GetActualMinWidth ( int minItemsInRow ) : double

Gets actual min width of the gallery panel (based on MinItemsInRow)

GetItemSize ( ) : Size

Determinates item's size (return Size.Empty in case of it is not possible)

Защищенные методы

Метод Описание
ArrangeOverride ( System finalSize ) : Size

When overridden in a derived class, positions child elements and determines a size for a derived class.

GetVisualChild ( int index ) : Visual

Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns a child at the specified index from a collection of child elements.

MeasureOverride ( System availableSize ) : Size

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the derived class.

OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void

Invoked when the VisualCollection of a visual object is modified.

Приватные методы

Метод Описание
GetPropertyValueAsString ( object item ) : string
Invalidate ( ) : void
InvalidateArrangeRecursive ( UIElement visual ) : void
InvalidateMeasureRecursive ( UIElement visual ) : void
OnFilterChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnGroupByChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsGroupedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnItemContainerGeneratorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
Refresh ( ) : void
RefreshDispatchered ( ) : void

Описание методов

ArrangeOverride() защищенный Метод

When overridden in a derived class, positions child elements and determines a size for a derived class.
protected ArrangeOverride ( System finalSize ) : Size
finalSize System The final area within the parent that this /// element should use to arrange itself and its children.
Результат System.Windows.Size

GalleryPanel() публичный Метод

Default constructor
public GalleryPanel ( ) : System
Результат System

GetActualMinWidth() публичный Метод

Gets actual min width of the gallery panel (based on MinItemsInRow)
public GetActualMinWidth ( int minItemsInRow ) : double
minItemsInRow int
Результат double

GetItemSize() публичный Метод

Determinates item's size (return Size.Empty in case of it is not possible)
public GetItemSize ( ) : Size
Результат System.Windows.Size

GetVisualChild() защищенный Метод

Overrides System.Windows.Media.Visual.GetVisualChild(System.Int32), and returns a child at the specified index from a collection of child elements.
protected GetVisualChild ( int index ) : Visual
index int The zero-based index of the requested /// child element in the collection
Результат Visual

MeasureOverride() защищенный Метод

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the derived class.
protected MeasureOverride ( System availableSize ) : Size
availableSize System The available size that this element can give /// to child elements. Infinity can be specified as a value to indicate that /// the element will size to whatever content is available.
Результат System.Windows.Size

OnVisualChildrenChanged() защищенный Метод

Invoked when the VisualCollection of a visual object is modified.
protected OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void
visualAdded System.Windows.DependencyObject The Visual that was added to the collection.
visualRemoved System.Windows.DependencyObject The Visual that was removed from the collection.
Результат void

Описание свойств

FilterProperty публичное статическое свойство

Using a DependencyProperty as the backing store for Filter. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows FilterProperty
Результат System.Windows.DependencyProperty

GroupByProperty публичное статическое свойство

Using a DependencyProperty as the backing store for GroupBy. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GroupByProperty
Результат System.Windows.DependencyProperty

GroupStyleProperty публичное статическое свойство

Using a DependencyProperty as the backing store for GroupHeaderStyle. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GroupStyleProperty
Результат System.Windows.DependencyProperty

IsGroupedProperty публичное статическое свойство

Using a DependencyProperty as the backing store for IsGrouped. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsGroupedProperty
Результат System.Windows.DependencyProperty

ItemContainerGeneratorProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ItemContainerGenerator. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemContainerGeneratorProperty
Результат System.Windows.DependencyProperty

ItemHeightProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ItemHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemHeightProperty
Результат System.Windows.DependencyProperty

ItemWidthProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ItemWidth. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemWidthProperty
Результат System.Windows.DependencyProperty

MaxItemsInRowProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ItemsInRow. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MaxItemsInRowProperty
Результат System.Windows.DependencyProperty

MinItemsInRowProperty публичное статическое свойство

Using a DependencyProperty as the backing store for ItemsInRow. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MinItemsInRowProperty
Результат System.Windows.DependencyProperty

OrientationProperty публичное статическое свойство

Using a DependencyProperty as the backing store for Orientation. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows OrientationProperty
Результат System.Windows.DependencyProperty