C# Class SilverlightFX.UserInterface.FormPanel

A Panel control with behavior to automatically layout its children in a form-like manner. The children consist of regular elements along with Label elements to represent associated form labels.
Inheritance: System.Windows.Controls.Grid
Afficher le fichier Open project: nikhilk/silverlightfx Class Usage Examples

Méthodes publiques

Свойство Type Description
IsLabeledProperty System.Windows.DependencyProperty
IsStretchedProperty System.Windows.DependencyProperty
LabelAlignmentProperty System.Windows.DependencyProperty
LabelPositionProperty System.Windows.DependencyProperty
LabelSpacingProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty
SpacingModeProperty System.Windows.DependencyProperty
SpacingProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
FormPanel ( ) : System

Initializes a new instance of a FormPanel panel.

GetIsLabeled ( FrameworkElement element ) : bool

Gets whether a particular element in a FormPanel has an associated Label. The default is true.

GetIsStretched ( FrameworkElement element ) : bool

Gets whether a particular element in a FormPanel should be stretched to consume all available space.

GetLabelPosition ( Label element ) : FormPanelLabelPosition

Gets the position of a Label with respect to its associated element in a FormPanel.

GetSpacingMode ( FrameworkElement element ) : FormPanelSpacing

Gets the spacing mode of the element relative to the previous label/element group.

SetIsLabeled ( FrameworkElement element, bool labeled ) : void

Sets whether a particular element in a FormPanel has an associated Label.

SetIsStretched ( FrameworkElement element, bool stretched ) : void

Sets whether a particular element in a FormPanel is stretched to consume all available space.

SetLabelPosition ( Label element, FormPanelLabelPosition labelPosition ) : void

Sets the relative position of a Label with respect to its associated element in a FormPanel.

SetSpacingMode ( FrameworkElement element, FormPanelSpacing spacingMode ) : void

Sets the spacing mode of the element relative to the previous label/element group.

Private Methods

Méthode Description
OnLayoutAttachedPropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLayoutPropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLayoutUpdated ( object sender, EventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
UpdateLayout ( bool orientationChanged ) : void
UpdateLayoutHorizontal ( ) : void
UpdateLayoutVertical ( ) : void

Method Details

FormPanel() public méthode

Initializes a new instance of a FormPanel panel.
public FormPanel ( ) : System
Résultat System

GetIsLabeled() public static méthode

Gets whether a particular element in a FormPanel has an associated Label. The default is true.
public static GetIsLabeled ( FrameworkElement element ) : bool
element System.Windows.FrameworkElement The element to lookup.
Résultat bool

GetIsStretched() public static méthode

Gets whether a particular element in a FormPanel should be stretched to consume all available space.
public static GetIsStretched ( FrameworkElement element ) : bool
element System.Windows.FrameworkElement The element to lookup.
Résultat bool

GetLabelPosition() public static méthode

Gets the position of a Label with respect to its associated element in a FormPanel.
public static GetLabelPosition ( Label element ) : FormPanelLabelPosition
element Label The Label element to lookup.
Résultat FormPanelLabelPosition

GetSpacingMode() public static méthode

Gets the spacing mode of the element relative to the previous label/element group.
public static GetSpacingMode ( FrameworkElement element ) : FormPanelSpacing
element System.Windows.FrameworkElement The element to set.
Résultat FormPanelSpacing

SetIsLabeled() public static méthode

Sets whether a particular element in a FormPanel has an associated Label.
public static SetIsLabeled ( FrameworkElement element, bool labeled ) : void
element System.Windows.FrameworkElement The element to set.
labeled bool true if the element has an associated Label; false otherwise.
Résultat void

SetIsStretched() public static méthode

Sets whether a particular element in a FormPanel is stretched to consume all available space.
public static SetIsStretched ( FrameworkElement element, bool stretched ) : void
element System.Windows.FrameworkElement The element to set.
stretched bool true if the element should be stretched; false otherwise.
Résultat void

SetLabelPosition() public static méthode

Sets the relative position of a Label with respect to its associated element in a FormPanel.
public static SetLabelPosition ( Label element, FormPanelLabelPosition labelPosition ) : void
element Label The Label element to set.
labelPosition FormPanelLabelPosition The relative position.
Résultat void

SetSpacingMode() public static méthode

Sets the spacing mode of the element relative to the previous label/element group.
public static SetSpacingMode ( FrameworkElement element, FormPanelSpacing spacingMode ) : void
element System.Windows.FrameworkElement The element to set.
spacingMode FormPanelSpacing The spacing mode to use.
Résultat void

Property Details

IsLabeledProperty public_oe static_oe property

Represents the IsLabeled attached property.
public static DependencyProperty,System.Windows IsLabeledProperty
Résultat System.Windows.DependencyProperty

IsStretchedProperty public_oe static_oe property

Represents the IsStretched attached property.
public static DependencyProperty,System.Windows IsStretchedProperty
Résultat System.Windows.DependencyProperty

LabelAlignmentProperty public_oe static_oe property

Represents the LabelAlignment property.
public static DependencyProperty,System.Windows LabelAlignmentProperty
Résultat System.Windows.DependencyProperty

LabelPositionProperty public_oe static_oe property

Represents the LabelPosition attached property.
public static DependencyProperty,System.Windows LabelPositionProperty
Résultat System.Windows.DependencyProperty

LabelSpacingProperty public_oe static_oe property

Represents the LabelSpacing property.
public static DependencyProperty,System.Windows LabelSpacingProperty
Résultat System.Windows.DependencyProperty

OrientationProperty public_oe static_oe property

Represents the Orientation property.
public static DependencyProperty,System.Windows OrientationProperty
Résultat System.Windows.DependencyProperty

SpacingModeProperty public_oe static_oe property

Represents the SpacingMode attached property.
public static DependencyProperty,System.Windows SpacingModeProperty
Résultat System.Windows.DependencyProperty

SpacingProperty public_oe static_oe property

Represents the Spacing property.
public static DependencyProperty,System.Windows SpacingProperty
Résultat System.Windows.DependencyProperty