[]
        
(Showing Draft Content)

C1.WPF.C1HyperPanel

C1HyperPanel Class

Arranges child elements in a stack and applies a dynamic zoom effect to the elements near the mouse.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
public class C1HyperPanel : Panel, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
Remarks
<p>The <xref href="C1.Silverlight.C1HyperPanel" data-throw-if-not-resolved="false"></xref> is similar to a <xref href="System.Windows.Controls.StackPanel" data-throw-if-not-resolved="false"></xref>, except is applies

a dynamic zoom effect as the user moves the mouse over the panel. Child elements near the mouse appear in their normal size, and elements away from the mouse are scaled down and appear smaller.

Use the C1.Silverlight.C1HyperPanel.Distribution and C1.Silverlight.C1HyperPanel.MinElementScale properties to control the intensity of the zoom effect.

Use the C1.Silverlight.C1HyperPanel.ApplyOpacity property to make elements far from the mouse appear faded.

Use VerticalAlignment and HorizontalAlignment properties on the child elements to determine how they should be aligned within the C1.Silverlight.C1HyperPanel.

In order to apply the zooming effect efficiently, the C1.Silverlight.C1HyperPanel takes over the RenderTransform property of its child elements. If you want to apply your own transforms to the child elements, place them in another panel before adding them to the C1.Silverlight.C1HyperPanel.

Note that some native Silverlight elements (such as the Button control) do not always auto-size correctly. You should set the width and height of these elements explicitly before adding them to the C1.Silverlight.C1HyperPanel.

Constructors

Name Description
C1HyperPanel()

Initializes a new instance of a C1HyperPanel.

Fields

Name Description
ApplyOpacityProperty

Identifies the ApplyOpacity dependency property.

CenterProperty

Identifies the Center dependency property.

DistributionProperty

Identifies the Distribution dependency property.

HorizontalContentAlignmentProperty

Identifies the HorizontalContentAlignment dependency property.

MinElementScaleProperty

Identifies the MinElementScale dependency property.

OrientationProperty

Identifies the Orientation dependency property.

VerticalContentAlignmentProperty

Identifies the VerticalContentAlignment dependency property.

Properties

Name Description
ApplyOpacity

Gets or sets a value between zero and one that determines the minimum scale to be applied to elements when they are away from the center.

Center

Gets or sets the center of the C1HyperPanel as a percentage of the control size.

Distribution

Gets or sets a value between 0.1 and 1.0 that controls how much zooming should be applied to elements near the center.

HorizontalContentAlignment

Gets or sets the horizontal alignment of the panel's content.

MinElementScale

Gets or sets a value between zero and one that determines the minimum scale to be applied to elements when they are away from the center.

Orientation

Gets or sets a value that indicates the dimension by which child elements are stacked.

VerticalContentAlignment

Gets or sets the vertical alignment of the panel's content.

Methods

Name Description
ArrangeOverride(Size)

Positions child elements and determines a size for the element.

MeasureOverride(Size)

Measures the size in layout required for child elements and determines a size for the element.

Extension Methods