C# Class SoundBoard.Wpf.Utility.VirtualizingTilePanel

Inheritance: System.Windows.Controls.VirtualizingPanel, IScrollInfo
Afficher le fichier Open project: jormenjanssen/Soundboard

Méthodes publiques

Свойство Type Description
ChildSizeProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
LineDown ( ) : void
LineLeft ( ) : void
LineRight ( ) : void
LineUp ( ) : void
MakeVisible ( Visual visual, Rect rectangle ) : Rect
MouseWheelDown ( ) : void
MouseWheelLeft ( ) : void
MouseWheelRight ( ) : void
MouseWheelUp ( ) : void
PageDown ( ) : void
PageLeft ( ) : void
PageRight ( ) : void
PageUp ( ) : void
SetHorizontalOffset ( double offset ) : void
SetVerticalOffset ( double offset ) : void
VirtualizingTilePanel ( ) : System

Méthodes protégées

Méthode Description
ArrangeOverride ( Size finalSize ) : Size

Arrange the children

MeasureOverride ( Size availableSize ) : Size

Measure the children

OnItemsChanged ( object sender, ItemsChangedEventArgs args ) : void

When items are removed, remove the corresponding UI if necessary

Private Methods

Méthode Description
ArrangeChild ( int itemIndex, UIElement child, Size finalSize ) : void

Position a child

CalculateChildrenPerRow ( Size availableSize ) : int

Helper function for tiling layout

CalculateExtent ( Size availableSize, int itemCount ) : Size

Calculate the extent of the view based on the available size

CleanUpItems ( int minDesiredGenerated, int maxDesiredGenerated ) : void

Revirtualize items that are no longer visible

GetChildSize ( ) : Size

Get the size of the children. We assume they are all the same

GetVisibleRange ( int &firstVisibleItemIndex, int &lastVisibleItemIndex ) : void

Get the range of children that are visible

UpdateScrollInfo ( Size availableSize ) : void

Method Details

ArrangeOverride() protected méthode

Arrange the children
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size Size available
Résultat System.Windows.Size

LineDown() public méthode

public LineDown ( ) : void
Résultat void

LineLeft() public méthode

public LineLeft ( ) : void
Résultat void

LineRight() public méthode

public LineRight ( ) : void
Résultat void

LineUp() public méthode

public LineUp ( ) : void
Résultat void

MakeVisible() public méthode

public MakeVisible ( Visual visual, Rect rectangle ) : Rect
visual Visual
rectangle System.Windows.Rect
Résultat System.Windows.Rect

MeasureOverride() protected méthode

Measure the children
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size Size available
Résultat System.Windows.Size

MouseWheelDown() public méthode

public MouseWheelDown ( ) : void
Résultat void

MouseWheelLeft() public méthode

public MouseWheelLeft ( ) : void
Résultat void

MouseWheelRight() public méthode

public MouseWheelRight ( ) : void
Résultat void

MouseWheelUp() public méthode

public MouseWheelUp ( ) : void
Résultat void

OnItemsChanged() protected méthode

When items are removed, remove the corresponding UI if necessary
protected OnItemsChanged ( object sender, ItemsChangedEventArgs args ) : void
sender object
args ItemsChangedEventArgs
Résultat void

PageDown() public méthode

public PageDown ( ) : void
Résultat void

PageLeft() public méthode

public PageLeft ( ) : void
Résultat void

PageRight() public méthode

public PageRight ( ) : void
Résultat void

PageUp() public méthode

public PageUp ( ) : void
Résultat void

SetHorizontalOffset() public méthode

public SetHorizontalOffset ( double offset ) : void
offset double
Résultat void

SetVerticalOffset() public méthode

public SetVerticalOffset ( double offset ) : void
offset double
Résultat void

VirtualizingTilePanel() public méthode

public VirtualizingTilePanel ( ) : System
Résultat System

Property Details

ChildSizeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ChildSizeProperty
Résultat System.Windows.DependencyProperty