C# Класс ComponentFactory.Quicksilver.Layout.MetaPanelBase

Base class of panel that has polymorphic layout/animate strategy.
Наследование: System.Windows.Controls.Panel
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
AnimateIdProperty System.Windows.DependencyProperty
ClipToBoundsProperty System.Windows.DependencyProperty
DisableOnElementCountProperty System.Windows.DependencyProperty
IsAnimatingProperty System.Windows.DependencyProperty
LayoutIdProperty System.Windows.DependencyProperty

Private Properties

Свойство Тип Описание
AnimateChildren bool
ImplementClipToBounds void
MetaPanelBase System
MonitorExtendElement void
OnIsAnimatingChanged void
OnNeedMeasure void
OnRendering void
OnUIElementsAdded void
OnUIElementsRemove void
PlatformConstructor void
RemoveChildElement void
ResyncStateDictionary void
UnmonitorExtendElement void

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

Метод Описание
ClearChildren ( ) : void

Perform remove animation for all the child elements and then remove from children.

LogicalChildAdd ( object child ) : void

Adds the provided object to the logical tree of this element.

LogicalChildRemove ( object child ) : void

Removes the provided object from the logical tree of this element.

RemoveChild ( UIElement element ) : void

Perform remove animation for the child and then remove from the children.

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

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

Position child elements according to already provided size.

CreateUIElementCollection ( FrameworkElement logicalParent ) : System.Windows.Controls.UIElementCollection

Create the collection used to hold child elements.

GetVisualChild ( int index ) : Visual

Return child at the specified index from a collection of child elements.

MeasureOverride ( Size availableSize ) : Size

Measure the layout size required to arrange all elements.

OnIsItemsHostChanged ( bool oldIsItemsHost, bool newIsItemsHost ) : void

Indicates that the IsItemsHost property value has changed.

OnNeedMeasureOnChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Invoked when a property change requires a measure to occur.

OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void

Invoked when the VisualCollection of a visual object is modified.

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

Метод Описание
AnimateChildren ( MetaElementStateDict stateDict, ICollection elements ) : bool
ImplementClipToBounds ( Size finalSize ) : void
MetaPanelBase ( ) : System
MonitorExtendElement ( object element ) : void
OnIsAnimatingChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnNeedMeasure ( object sender, EventArgs e ) : void
OnRendering ( object sender, EventArgs e ) : void
OnUIElementsAdded ( object sender, UIElementsEventArgs e ) : void
OnUIElementsRemove ( object sender, UIElementsEventArgs e ) : void
PlatformConstructor ( ) : void
RemoveChildElement ( UIElement element ) : void
ResyncStateDictionary ( ) : void
UnmonitorExtendElement ( object element ) : void

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

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

Position child elements according to already provided size.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size Size that layout should use to arrange child elements.
Результат System.Windows.Size

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

Perform remove animation for all the child elements and then remove from children.
public ClearChildren ( ) : void
Результат void

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

Create the collection used to hold child elements.
protected CreateUIElementCollection ( FrameworkElement logicalParent ) : System.Windows.Controls.UIElementCollection
logicalParent System.Windows.FrameworkElement The logical parent element of the collection to be created.
Результат System.Windows.Controls.UIElementCollection

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

Return child at the specified index from a collection of child elements.
protected GetVisualChild ( int index ) : Visual
index int Zero-based index of the requested child element.
Результат Visual

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

Adds the provided object to the logical tree of this element.
public LogicalChildAdd ( object child ) : void
child object Child element to be added.
Результат void

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

Removes the provided object from the logical tree of this element.
public LogicalChildRemove ( object child ) : void
child object Child element to be removed.
Результат void

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

Measure the layout size required to arrange all elements.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size Available size that can be given to elements.
Результат System.Windows.Size

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

Indicates that the IsItemsHost property value has changed.
protected OnIsItemsHostChanged ( bool oldIsItemsHost, bool newIsItemsHost ) : void
oldIsItemsHost bool The old property value.
newIsItemsHost bool The new property value.
Результат void

OnNeedMeasureOnChanged() защищенный статический Метод

Invoked when a property change requires a measure to occur.
protected static OnNeedMeasureOnChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject Owning object.
e System.Windows.DependencyPropertyChangedEventArgs Details of property that has changed.
Результат void

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

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

Perform remove animation for the child and then remove from the children.
public RemoveChild ( UIElement element ) : void
element UIElement Element to be removed.
Результат void

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

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

Identifies the AnimateId dependency property.
public static DependencyProperty,System.Windows AnimateIdProperty
Результат System.Windows.DependencyProperty

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

Identifies the ClipToBounds dependency property.
public static DependencyProperty,System.Windows ClipToBoundsProperty
Результат System.Windows.DependencyProperty

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

Identifies the DisableOnElementCount dependency property.
public static DependencyProperty,System.Windows DisableOnElementCountProperty
Результат System.Windows.DependencyProperty

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

Identifies the IsAnimatingProperty dependency property.
public static DependencyProperty,System.Windows IsAnimatingProperty
Результат System.Windows.DependencyProperty

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

Identifies the LayoutId dependency property.
public static DependencyProperty,System.Windows LayoutIdProperty
Результат System.Windows.DependencyProperty