C# Class Fluent.GalleryPanel

Represents panel for Gallery, InRibbonGallery, ComboBox with grouping and filtering capabilities
Inheritance: System.Windows.Controls.VirtualizingStackPanel
Datei anzeigen Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
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

Public Methods

Method Description
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)

Protected Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

ArrangeOverride() protected method

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.
return System.Windows.Size

GalleryPanel() public method

Default constructor
public GalleryPanel ( ) : System
return System

GetActualMinWidth() public method

Gets actual min width of the gallery panel (based on MinItemsInRow)
public GetActualMinWidth ( int minItemsInRow ) : double
minItemsInRow int
return double

GetItemSize() public method

Determinates item's size (return Size.Empty in case of it is not possible)
public GetItemSize ( ) : Size
return System.Windows.Size

GetVisualChild() protected method

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
return Visual

MeasureOverride() protected method

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.
return System.Windows.Size

OnVisualChildrenChanged() protected method

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.
return void

Property Details

FilterProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Filter. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows FilterProperty
return System.Windows.DependencyProperty

GroupByProperty public_oe static_oe property

Using a DependencyProperty as the backing store for GroupBy. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GroupByProperty
return System.Windows.DependencyProperty

GroupStyleProperty public_oe static_oe property

Using a DependencyProperty as the backing store for GroupHeaderStyle. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows GroupStyleProperty
return System.Windows.DependencyProperty

IsGroupedProperty public_oe static_oe property

Using a DependencyProperty as the backing store for IsGrouped. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows IsGroupedProperty
return System.Windows.DependencyProperty

ItemContainerGeneratorProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ItemContainerGenerator. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemContainerGeneratorProperty
return System.Windows.DependencyProperty

ItemHeightProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ItemHeight. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemHeightProperty
return System.Windows.DependencyProperty

ItemWidthProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ItemWidth. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows ItemWidthProperty
return System.Windows.DependencyProperty

MaxItemsInRowProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ItemsInRow. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MaxItemsInRowProperty
return System.Windows.DependencyProperty

MinItemsInRowProperty public_oe static_oe property

Using a DependencyProperty as the backing store for ItemsInRow. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows MinItemsInRowProperty
return System.Windows.DependencyProperty

OrientationProperty public_oe static_oe property

Using a DependencyProperty as the backing store for Orientation. This enables animation, styling, binding, etc...
public static DependencyProperty,System.Windows OrientationProperty
return System.Windows.DependencyProperty