C# Класс WPFSpark.FluidWrapPanel

Наследование: Windows.UI.Xaml.Controls.Panel
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
DragEasingProperty Windows.UI.Xaml.DependencyProperty
DragOpacityProperty Windows.UI.Xaml.DependencyProperty
DragScaleProperty Windows.UI.Xaml.DependencyProperty
ElementEasingProperty Windows.UI.Xaml.DependencyProperty
IsComposingProperty Windows.UI.Xaml.DependencyProperty
ItemHeightProperty Windows.UI.Xaml.DependencyProperty
ItemWidthProperty Windows.UI.Xaml.DependencyProperty
ItemsSourceProperty Windows.UI.Xaml.DependencyProperty
OrientationProperty Windows.UI.Xaml.DependencyProperty
fluidElements List

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

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

Ctor

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

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

Override for the Arrange Layout Phase

MeasureOverride ( Size availableSize ) : Size

Override for the Measure Layout Phase

OnDragEasingChanged ( EasingFunctionBase oldDragEasing, EasingFunctionBase newDragEasing ) : void

Provides derived classes an opportunity to handle changes to the DragEasing property.

OnDragOpacityChanged ( double oldDragOpacity, double newDragOpacity ) : void

Provides derived classes an opportunity to handle changes to the DragOpacity property.

OnDragScaleChanged ( double oldDragScale, double newDragScale ) : void

Provides derived classes an opportunity to handle changes to the DragScale property.

OnElementEasingChanged ( EasingFunctionBase oldElementEasing, EasingFunctionBase newElementEasing ) : void

Provides derived classes an opportunity to handle changes to the ElementEasing property.

OnIsComposingChanged ( bool oldIsComposing, bool newIsComposing ) : void

Provides derived classes an opportunity to handle changes to the IsComposing property.

OnItemHeightChanged ( double oldItemHeight, double newItemHeight ) : void

Provides derived classes an opportunity to handle changes to the ItemHeight property.

OnItemWidthChanged ( double oldItemWidth, double newItemWidth ) : void

Provides derived classes an opportunity to handle changes to the ItemWidth property.

OnItemsSourceChanged ( IEnumerable oldItemsSource, IEnumerable newItemsSource ) : void

Provides derived classes an opportunity to handle changes to the ItemsSource property.

OnOrientationChanged ( Orientation oldOrientation, Orientation newOrientation ) : void

Provides derived classes an opportunity to handle changes to the Orientation property.

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

Метод Описание
AddChildToFluidElements ( UIElement child ) : void

Adds the child to the fluidElements collection and initializes its RenderTransform.

BeginFluidDrag ( UIElement child, Point position ) : void

Handler for the event when the user starts dragging the dragElement.

ClearItemsSource ( ) : void

Removes all the children from the FluidWrapPanel

CoerceDragOpacity ( DependencyObject d, object value ) : object

Coerces the FluidDrag Opacity to an acceptable value

EndFluidDrag ( UIElement child, Point position, Point positionInParent ) : void

Handler for the event when the user stops dragging the dragElement and releases it.

FluidDrag ( UIElement child, Point position, Point positionInParent ) : void

Handler for the event when the user drags the dragElement.

InitializeArrange ( ) : void

Intializes the arrangement of the children

OnDragEasingChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the DragEasing property.

OnDragOpacityChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the DragOpacity property.

OnDragScaleChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the DragScale property.

OnElementEasingChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ElementEasing property.

OnIsComposingChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the IsComposing property.

OnItemHeightChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ItemHeight property.

OnItemWidthChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ItemWidth property.

OnItemsSourceChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the ItemsSource property.

OnOrientationChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Handles changes to the Orientation property.

UpdateDragElementIndex ( int newIndex ) : bool

Moves the dragElement to the new Index

UpdateFluidLayout ( bool showEasing = true ) : void

Iterates through all the fluid elements and animate their movement to their new location.

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

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

Override for the Arrange Layout Phase
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Windows.Foundation.Size Available size provided by the FluidWrapPanel
Результат Windows.Foundation.Size

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

Ctor
public FluidWrapPanel ( ) : System
Результат System

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

Override for the Measure Layout Phase
protected MeasureOverride ( Size availableSize ) : Size
availableSize Windows.Foundation.Size Available Size
Результат Windows.Foundation.Size

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

Provides derived classes an opportunity to handle changes to the DragEasing property.
protected OnDragEasingChanged ( EasingFunctionBase oldDragEasing, EasingFunctionBase newDragEasing ) : void
oldDragEasing Windows.UI.Xaml.Media.Animation.EasingFunctionBase Old Value
newDragEasing Windows.UI.Xaml.Media.Animation.EasingFunctionBase New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the DragOpacity property.
protected OnDragOpacityChanged ( double oldDragOpacity, double newDragOpacity ) : void
oldDragOpacity double Old Value
newDragOpacity double New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the DragScale property.
protected OnDragScaleChanged ( double oldDragScale, double newDragScale ) : void
oldDragScale double Old Value
newDragScale double New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the ElementEasing property.
protected OnElementEasingChanged ( EasingFunctionBase oldElementEasing, EasingFunctionBase newElementEasing ) : void
oldElementEasing Windows.UI.Xaml.Media.Animation.EasingFunctionBase Old Value
newElementEasing Windows.UI.Xaml.Media.Animation.EasingFunctionBase New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the IsComposing property.
protected OnIsComposingChanged ( bool oldIsComposing, bool newIsComposing ) : void
oldIsComposing bool Old Value
newIsComposing bool New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the ItemHeight property.
protected OnItemHeightChanged ( double oldItemHeight, double newItemHeight ) : void
oldItemHeight double Old Value
newItemHeight double New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the ItemWidth property.
protected OnItemWidthChanged ( double oldItemWidth, double newItemWidth ) : void
oldItemWidth double Old Value
newItemWidth double New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the ItemsSource property.
protected OnItemsSourceChanged ( IEnumerable oldItemsSource, IEnumerable newItemsSource ) : void
oldItemsSource IEnumerable Old Value
newItemsSource IEnumerable New Value
Результат void

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

Provides derived classes an opportunity to handle changes to the Orientation property.
protected OnOrientationChanged ( Orientation oldOrientation, Orientation newOrientation ) : void
oldOrientation Orientation Old Value
newOrientation Orientation New Value
Результат void

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

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

DragEasing Dependency Property
public static DependencyProperty,Windows.UI.Xaml DragEasingProperty
Результат Windows.UI.Xaml.DependencyProperty

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

DragOpacity Dependency Property
public static DependencyProperty,Windows.UI.Xaml DragOpacityProperty
Результат Windows.UI.Xaml.DependencyProperty

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

DragScale Dependency Property
public static DependencyProperty,Windows.UI.Xaml DragScaleProperty
Результат Windows.UI.Xaml.DependencyProperty

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

ElementEasing Dependency Property
public static DependencyProperty,Windows.UI.Xaml ElementEasingProperty
Результат Windows.UI.Xaml.DependencyProperty

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

IsComposing Dependency Property
public static DependencyProperty,Windows.UI.Xaml IsComposingProperty
Результат Windows.UI.Xaml.DependencyProperty

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

ItemHeight Dependency Property
public static DependencyProperty,Windows.UI.Xaml ItemHeightProperty
Результат Windows.UI.Xaml.DependencyProperty

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

ItemWidth Dependency Property
public static DependencyProperty,Windows.UI.Xaml ItemWidthProperty
Результат Windows.UI.Xaml.DependencyProperty

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

ItemsSource Dependency Property
public static DependencyProperty,Windows.UI.Xaml ItemsSourceProperty
Результат Windows.UI.Xaml.DependencyProperty

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

Orientation Dependency Property
public static DependencyProperty,Windows.UI.Xaml OrientationProperty
Результат Windows.UI.Xaml.DependencyProperty

fluidElements публичное свойство

public List fluidElements
Результат List