Table of Contents

Class ContainPanel

Namespace
HeBianGu.Control.Panel
Assembly
HeBianGu.Control.Panel.dll
public class ContainPanel : AnimationPanel, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Inheritance
ContainPanel
Implements
Derived
Inherited Members
Extension Methods

Fields

AnimationActionProperty

public static readonly DependencyProperty AnimationActionProperty

Field Value

DependencyProperty

TransitionProperty

应用窗体关闭和显示

public static readonly DependencyProperty TransitionProperty

Field Value

DependencyProperty

Properties

AnimationAction

public ITransition AnimationAction { get; set; }

Property Value

ITransition

Methods

Add(UIElement)

public void Add(UIElement element)

Parameters

element UIElement

ArrangeOverride(Size)

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize Size

The final area within the parent that this element should use to arrange itself and its children.

Returns

Size

The actual size used.

GetTransition(DependencyObject)

public static ITransition GetTransition(DependencyObject obj)

Parameters

obj DependencyObject

Returns

ITransition

MeasureOverride(Size)

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize Size

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.

Returns

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.

OnMouseDown(MouseButtonEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected override void OnMouseDown(MouseButtonEventArgs e)

Parameters

e MouseButtonEventArgs

The MouseButtonEventArgs that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.

OnTransitionChanged(DependencyObject, DependencyPropertyChangedEventArgs)

public static void OnTransitionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

Parameters

d DependencyObject
e DependencyPropertyChangedEventArgs

RefreshAnimation()

protected override void RefreshAnimation()

Remove()

public void Remove()

Remove(UIElement)

public void Remove(UIElement element)

Parameters

element UIElement

SetTransition(DependencyObject, ITransition)

public static void SetTransition(DependencyObject obj, ITransition value)

Parameters

obj DependencyObject
value ITransition