C# Class ComponentFactory.Quicksilver.Layout.MetaPanelBase

Base class of panel that has polymorphic layout/animate strategy.
Inheritance: System.Windows.Controls.Panel
Mostrar archivo Open project: ComponentFactory/Quicksilver Class Usage Examples

Public Properties

Property Type Description
AnimateIdProperty System.Windows.DependencyProperty
ClipToBoundsProperty System.Windows.DependencyProperty
DisableOnElementCountProperty System.Windows.DependencyProperty
IsAnimatingProperty System.Windows.DependencyProperty
LayoutIdProperty System.Windows.DependencyProperty

Private Properties

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

Public Methods

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

Protected Methods

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

Private Methods

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

Method Details

ArrangeOverride() protected method

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

ClearChildren() public method

Perform remove animation for all the child elements and then remove from children.
public ClearChildren ( ) : void
return void

CreateUIElementCollection() protected method

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

GetVisualChild() protected method

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

LogicalChildAdd() public method

Adds the provided object to the logical tree of this element.
public LogicalChildAdd ( object child ) : void
child object Child element to be added.
return void

LogicalChildRemove() public method

Removes the provided object from the logical tree of this element.
public LogicalChildRemove ( object child ) : void
child object Child element to be removed.
return void

MeasureOverride() protected method

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

OnIsItemsHostChanged() protected method

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

OnNeedMeasureOnChanged() protected static method

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

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

RemoveChild() public method

Perform remove animation for the child and then remove from the children.
public RemoveChild ( UIElement element ) : void
element UIElement Element to be removed.
return void

Property Details

AnimateIdProperty public_oe static_oe property

Identifies the AnimateId dependency property.
public static DependencyProperty,System.Windows AnimateIdProperty
return System.Windows.DependencyProperty

ClipToBoundsProperty public_oe static_oe property

Identifies the ClipToBounds dependency property.
public static DependencyProperty,System.Windows ClipToBoundsProperty
return System.Windows.DependencyProperty

DisableOnElementCountProperty public_oe static_oe property

Identifies the DisableOnElementCount dependency property.
public static DependencyProperty,System.Windows DisableOnElementCountProperty
return System.Windows.DependencyProperty

IsAnimatingProperty public_oe static_oe property

Identifies the IsAnimatingProperty dependency property.
public static DependencyProperty,System.Windows IsAnimatingProperty
return System.Windows.DependencyProperty

LayoutIdProperty public_oe static_oe property

Identifies the LayoutId dependency property.
public static DependencyProperty,System.Windows LayoutIdProperty
return System.Windows.DependencyProperty