Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / C1HyperPanel Class
Members

In This Topic
    C1HyperPanel Class
    In This Topic
    Arranges child elements in a stack and applies a dynamic zoom effect to the elements near the mouse.
    Object Model
    C1HyperPanel Class
    Syntax
    'Declaration
     
    
    <LicenseProviderAttribute()>
    <LocalizabilityAttribute(LocalizationCategory.Ignore)>
    <ContentPropertyAttribute("Children")>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class C1HyperPanel 
       Inherits System.Windows.Controls.Panel
    [LicenseProvider()]
    [Localizability(LocalizationCategory.Ignore)]
    [ContentProperty("Children")]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class C1HyperPanel : System.Windows.Controls.Panel 
    Remarks

    The C1.Silverlight.C1HyperPanel is similar to a System.Windows.Controls.StackPanel, 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 System.Windows.FrameworkElement.VerticalAlignment and System.Windows.FrameworkElement.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 System.Windows.UIElement.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 System.Windows.Controls.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.

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Panel
                         C1.WPF.C1HyperPanel

    See Also