FanPanel Class
Represents a panel that positions child elements along the z-axis.
public class FanPanel : PanelBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, ILogicalParent, IVisualParent, IScrollInfo
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Panel PanelBase Object
- Implements:
- ILogicalParent IVisualParent
Constructors
FanPanel()
Initializes a new instance of the FanPanel class.
public FanPanel()
Properties
BackAngleStep
Gets or sets a value used to increment the angle of elements after the focal element based on their distance. This is a dependency property.
public double BackAngleStep { get; set; }
Property Value
- Double:
A value used to increment the angle of elements after the focal element based on their distance. The default value is
15.0
.
BackOffsetStep
Gets or sets a value used to increment the X and Y coordinate of the elements after the focal element based on their distance. This is a dependency property.
public Point BackOffsetStep { get; set; }
Property Value
- Point:
A value used to increment the X and Y coordinate of the elements after the focal element based on their distance. The default value is
0,0
.
BackOpacityStep
Gets or sets a value used to decrement the opacity of the elements after the focal element based on their distance. This is a dependency property.
public double BackOpacityStep { get; set; }
Property Value
- Double:
A value used to decrement the opacity of the elements after the focal element based on their distance. The default value is
0.1
.
CanHorizontallyScroll
Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
CanVerticallyScroll
Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
ExtentHeight
Gets the vertical size of the extent.
public double ExtentHeight { get; }
Property Value
ExtentWidth
Gets the horizontal size of the extent.
public double ExtentWidth { get; }
Property Value
FocalIndex
Gets or sets the index of the focal child, which should be centered in the panel. This is a dependency property.
public int FocalIndex { get; set; }
Property Value
- Int32:
The index of the focal child, which should be centered in the panel. If set to
-1
then no focal item will be used. The default value is-1
.
ForeAngleStep
Gets or sets a value used to increment the angle of elements before the focal element based on their distance. This is a dependency property.
public double ForeAngleStep { get; set; }
Property Value
- Double:
A value used to increment the angle of elements before the focal element based on their distance. The default value is
15.0
.
ForeElementLayoutPlacement
Gets or sets the placement of any elements before the focal element in the panel. This is a dependency property.
public ElementLayoutPlacement ForeElementLayoutPlacement { get; set; }
Property Value
- ElementLayoutPlacement:
The placement of any elements before the focal element in the panel. The default value is
ElementLayoutPlacement.Hidden
.
ForeOffsetStep
Gets or sets a value used to increment the X and Y coordinate of the elements before the focal element based on their distance. This is a dependency property.
public Point ForeOffsetStep { get; set; }
Property Value
- Point:
A value used to increment the X and Y coordinate of the elements before the focal element based on their distance. The default value is
0,0
.
ForeOpacityStep
Gets or sets a value used to decrement the opacity of the elements before the focal element based on their distance. This is a dependency property.
public double ForeOpacityStep { get; set; }
Property Value
- Double:
A value used to decrement the opacity of the elements before the focal element based on their distance. The default value is
0.1
.
HorizontalOffset
Gets the horizontal offset of the scrolled content.
public double HorizontalOffset { get; }
Property Value
IsFocalIndexAutoBound
Gets or sets a value indicating whether the FocalIndex property is automatically bound to the associated Selector.SelectedIndex property when used as an items host. This is a dependency property.
public bool IsFocalIndexAutoBound { get; set; }
Property Value
- Boolean:
true
if the FocalIndex property is automatically bound; otherwise,false
. The default value istrue
.
ScrollOwner
Gets or sets a ScrollViewer element that controls scrolling behavior.
public ScrollViewer ScrollOwner { get; set; }
Property Value
- ScrollViewer:
A ScrollViewer element that controls scrolling behavior. This property has no default value.
VerticalOffset
Gets the vertical offset of the scrolled content.
public double VerticalOffset { get; }
Property Value
- Double:
A Double that represents, in device independent pixels, the vertical offset of the scrolled content. Valid values are between zero and the ExtentHeight minus the ViewportHeight. This property has no default value.
ViewportHeight
Gets the vertical size of the viewport for this content.
public double ViewportHeight { get; }
Property Value
ViewportWidth
Gets the horizontal size of the viewport for this content.
public double ViewportWidth { get; }
Property Value
Methods
ArrangeElements(IList<UIElement>, Size)
Positions the specified elements and determines a size for a FrameworkElement-derived class.
public override Size ArrangeElements(IList<UIElement> elements, Size finalSize)
Parameter | Type | Description |
---|---|---|
elements | IList<UIElement> | The elements to be arranged. |
finalSize | Size | The final area within the parent that this element should use to arrange itself and the specified elements. |
Returns
- Size:
The actual size used.
LineDown()
Scrolls down within content by one logical unit.
public void LineDown()
LineLeft()
Scrolls left within content by one logical unit.
public void LineLeft()
LineRight()
Scrolls right within content by one logical unit.
public void LineRight()
LineUp()
Scrolls up within content by one logical unit.
public void LineUp()
MakeVisible(Visual, Rect)
Forces content to scroll until the coordinate space of a Visual object is visible.
public Rect MakeVisible(Visual visual, Rect rectangle)
Parameter | Type | Description |
---|---|---|
visual | Visual | A Visual that becomes visible. |
rectangle | Rect | A bounding rectangle that identifies the coordinate space to make visible. |
Returns
MeasureElements(IList<UIElement>, Size)
Measures the size in layout required for the specified elements and determines a size for the FrameworkElement-derived class.
public override Size MeasureElements(IList<UIElement> elements, Size availableSize)
Parameter | Type | Description |
---|---|---|
elements | IList<UIElement> | The elements to be measured. |
availableSize | Size | The available size that this element can give to the specified 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 the specified elements.
MouseWheelDown()
Scrolls down within content after a user clicks the wheel button on a mouse.
public void MouseWheelDown()
MouseWheelLeft()
Scrolls left within content after a user clicks the wheel button on a mouse.
public void MouseWheelLeft()
MouseWheelRight()
Scrolls right within content after a user clicks the wheel button on a mouse.
public void MouseWheelRight()
MouseWheelUp()
Scrolls up within content after a user clicks the wheel button on a mouse.
public void MouseWheelUp()
PageDown()
Scrolls down within content by one page.
public void PageDown()
PageLeft()
Scrolls left within content by one page.
public void PageLeft()
PageRight()
Scrolls right within content by one page.
public void PageRight()
PageUp()
Scrolls up within content by one page.
public void PageUp()
SetHorizontalOffset(Double)
Sets the amount of horizontal offset.
public void SetHorizontalOffset(double offset)
Parameter | Type | Description |
---|---|---|
offset | Double | The degree to which content is horizontally offset from the containing viewport. |
SetVerticalOffset(Double)
Sets the amount of vertical offset.
public void SetVerticalOffset(double offset)
Parameter | Type | Description |
---|---|---|
offset | Double | The degree to which content is vertically offset from the containing viewport. |
Fields
BackAngleStepProperty
Identifies the BackAngleStep dependency property. This field is read-only.
public static readonly DependencyProperty BackAngleStepProperty
BackOffsetStepProperty
Identifies the BackOffsetStep dependency property. This field is read-only.
public static readonly DependencyProperty BackOffsetStepProperty
BackOpacityStepProperty
Identifies the BackOpacityStep dependency property. This field is read-only.
public static readonly DependencyProperty BackOpacityStepProperty
FocalIndexProperty
Identifies the FocalIndex dependency property. This field is read-only.
public static readonly DependencyProperty FocalIndexProperty
ForeAngleStepProperty
Identifies the ForeAngleStep dependency property. This field is read-only.
public static readonly DependencyProperty ForeAngleStepProperty
ForeElementLayoutPlacementProperty
Identifies the ForeElementLayoutPlacement dependency property. This field is read-only.
public static readonly DependencyProperty ForeElementLayoutPlacementProperty
ForeOffsetStepProperty
Identifies the ForeOffsetStep dependency property. This field is read-only.
public static readonly DependencyProperty ForeOffsetStepProperty
ForeOpacityStepProperty
Identifies the ForeOpacityStep dependency property. This field is read-only.
public static readonly DependencyProperty ForeOpacityStepProperty
IsFocalIndexAutoBoundProperty
Identifies the IsFocalIndexAutoBound dependency property. This field is read-only.
public static readonly DependencyProperty IsFocalIndexAutoBoundProperty
Inherited Members
- PanelBase.AnimationCountProperty
- PanelBase.ArrangeAnimationProperty
- PanelBase.ArrangeHeightAnimatedProperty
- PanelBase.ArrangeStateProperty
- PanelBase.ArrangeWidthAnimatedProperty
- PanelBase.ArrangeXAnimatedProperty
- PanelBase.ArrangeYAnimatedProperty
- PanelBase.IsAnimatedProperty
- PanelBase.IsLayoutUpdatePendingProperty
- PanelBase.AreLeavingElementsAnimatedProperty
- PanelBase.ArrangeElement(UIElement, Boolean)
- PanelBase.ArrangeElement(UIElement, Nullable<Rect>, Boolean)
- PanelBase.ArrangeElement(PanelBase, UIElement, Boolean)
- PanelBase.ArrangeElement(PanelBase, UIElement, Nullable<Rect>, Boolean)
- PanelBase.GetArrangeHeightAnimated(UIElement)
- PanelBase.SetArrangeHeightAnimated(UIElement, Double)
- PanelBase.ArrangeOverride(Size)
- PanelBase.GetArrangeRectAnimated(UIElement)
- PanelBase.GetArrangeState(UIElement)
- PanelBase.SetArrangeState(UIElement, ArrangeState)
- PanelBase.GetArrangeWidthAnimated(UIElement)
- PanelBase.SetArrangeWidthAnimated(UIElement, Double)
- PanelBase.GetArrangeXAnimated(UIElement)
- PanelBase.SetArrangeXAnimated(UIElement, Double)
- PanelBase.GetArrangeYAnimated(UIElement)
- PanelBase.SetArrangeYAnimated(UIElement, Double)
- PanelBase.GetIsAnimated(UIElement)
- PanelBase.SetIsAnimated(UIElement, Boolean)
- PanelBase.MeasureOverride(Size)
- PanelBase.ILogicalParent.AddLogicalChild(Object)
- PanelBase.ILogicalParent.RemoveLogicalChild(Object)
- PanelBase.IVisualParent.AddVisualChild(Visual)
- PanelBase.IVisualParent.RemoveVisualChild(Visual)
- PanelBase.GetVisualChild(Int32)
- PanelBase.OnVisualChildrenChanged(DependencyObject, DependencyObject)
- PanelBase.ArrangeAnimation
- PanelBase.ArrangeAnimationResolved
- PanelBase.IsLayoutUpdatePending
- PanelBase.AreLeavingElementsAnimated
- PanelBase.HasLeavingChildren
- PanelBase.LeavingChildren
- PanelBase.VisualChildrenCount
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()