base class used to hold items three panels of elements - Near, Center and Far.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class PictureBoxBasePanelElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IPictureBoxPanelElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementPictureBoxBasePanelElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the PictureBoxBasePanelElement class.
public PictureBoxBasePanelElement()
Properties
Gets or sets a value indicating whether to use animation when changing its state.
public bool AllowAnimation { get; set; }
Gets or sets the animation frames.
public int AnimationFrames { get; set; }
Gets or sets the animation interval.
public int AnimationInterval { get; set; }
Gets or sets the RadProperty which is changed when the panel is Shown or Hidden. Note that when this property is changed the VisibleValue and HiddenValue must also be updated accordingly. Note that if the animation property is changed in the AnimationStarting event, it will affect this property.
public RadProperty DisplayProperty { get; set; }
Gets or sets the value applied to the DisplayProperty when the panel is hidden. Note that if the animation property is changed in the AnimationStarting event, it will affect this property.
public object HiddenValue { get; set; }
Gets a value indicating whether the control is currently animating.
[Browsable(false)]
public bool IsAnimating { get; set; }
public Orientation Orientation { get; set; }
Implements:
Gets or sets the value applied to the DisplayProperty when the panel is displayed. Note that if the animation property is changed in the AnimationStarting event, it will affect this property.
public object VisibleValue { get; set; }
Methods
Arranges the PictureBoxBasePanelElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF finalSize)
The size that is available for element.
Returns:The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides:
In this method call to the Arrange method of each child must be made.
Cancels the currently running animation.
public void CancelAnimation()
Changes the state of this object by setting a new value to a specified RadProperty and applies animation. If animation is not allowed only applies the new value to the object.
Creates an element stack positioned in the center.
protected virtual StackLayoutElementLite CreateCenterElementsStack()
Creates a new items collection positioned in the center.
protected virtual RadItemOwnerCollection CreateCenterItemsCollection()
The items collection.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates an element stack positioned in the far end. When the Orientation is Horizontal the position is right. When the Orientation is Vertical the position is bottom.
protected virtual StackLayoutElementLite CreateFarElementsStack()
Creates a new items collection positioned in the far end. When the Orientation is Horizontal the position is right. When the Orientation is Vertical the position is bottom.
protected virtual RadItemOwnerCollection CreateFarItemsCollection()
The items collection.
Creates an element stack positioned in the near end. When the Orientation is Horizontal the position is left. When the Orientation is Vertical the position is top.
protected virtual StackLayoutElementLite CreateNearElementsStack()
Creates a new items collection positioned in the near end. When the Orientation is Horizontal the position is left. When the Orientation is Vertical the position is top.
protected virtual RadItemOwnerCollection CreateNearItemsCollection()
The items collection.
Hides the panel.
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
protected override void InitializeFields()
Overrides:
Measures the space required by the PictureBoxBasePanelElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF availableSize)
The size that is available to the PictureBoxBasePanelElement. The available size can be infinity (to take the full size of the element)
Returns:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
protected virtual void OnAnimationFinished(AnimationStatusEventArgs e)
protected virtual void OnAnimationStarted(AnimationStatusEventArgs e)
protected virtual void OnAnimationStarting(PictureBoxPanelAnimationStartingEventArgs e)
protected virtual void OnOrientationChanged()
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Determines whether a given child should be arranged. For example when base.ArrangeOverride() is called, but we have custom layout logic for current element.
protected override bool ShouldArrangeChild(RadElement child)
The child that is going to be arranged.
Returns:A value indicating whether the base class layout will be executed for the given child.
Overrides:
Gets a value indicating, whether a child will be measured during the MeasureOverride.
protected override bool ShouldMeasureChild(RadElement child)
The child.
Returns:Whether the child will be measured in MeasureOverride.
Overrides:
Shows the panel.
Events
Occurs when the animation is finished.
public event AnimationFinishedEventHandler AnimationFinished
Occurs when the animation is started.
public event AnimationStartedEventHandler AnimationStarted
Occurs before the start of the animation. Suitable to change any animation property(for example the animated property) or cancel the animation.
public event PictureBoxPanelAnimationStartingEventHandler AnimationStarting