C# Класс 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.
Наследование: System.Windows.Controls.Grid
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FormPanel() публичный Метод

Initializes a new instance of a FormPanel panel.
public FormPanel ( ) : System
Результат System

GetIsLabeled() публичный статический Метод

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.
Результат bool

GetIsStretched() публичный статический Метод

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.
Результат bool

GetLabelPosition() публичный статический Метод

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.
Результат FormPanelLabelPosition

GetSpacingMode() публичный статический Метод

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.
Результат FormPanelSpacing

SetIsLabeled() публичный статический Метод

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.
Результат void

SetIsStretched() публичный статический Метод

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.
Результат void

SetLabelPosition() публичный статический Метод

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.
Результат void

SetSpacingMode() публичный статический Метод

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.
Результат void

Описание свойств

IsLabeledProperty публичное статическое свойство

Represents the IsLabeled attached property.
public static DependencyProperty,System.Windows IsLabeledProperty
Результат System.Windows.DependencyProperty

IsStretchedProperty публичное статическое свойство

Represents the IsStretched attached property.
public static DependencyProperty,System.Windows IsStretchedProperty
Результат System.Windows.DependencyProperty

LabelAlignmentProperty публичное статическое свойство

Represents the LabelAlignment property.
public static DependencyProperty,System.Windows LabelAlignmentProperty
Результат System.Windows.DependencyProperty

LabelPositionProperty публичное статическое свойство

Represents the LabelPosition attached property.
public static DependencyProperty,System.Windows LabelPositionProperty
Результат System.Windows.DependencyProperty

LabelSpacingProperty публичное статическое свойство

Represents the LabelSpacing property.
public static DependencyProperty,System.Windows LabelSpacingProperty
Результат System.Windows.DependencyProperty

OrientationProperty публичное статическое свойство

Represents the Orientation property.
public static DependencyProperty,System.Windows OrientationProperty
Результат System.Windows.DependencyProperty

SpacingModeProperty публичное статическое свойство

Represents the SpacingMode attached property.
public static DependencyProperty,System.Windows SpacingModeProperty
Результат System.Windows.DependencyProperty

SpacingProperty публичное статическое свойство

Represents the Spacing property.
public static DependencyProperty,System.Windows SpacingProperty
Результат System.Windows.DependencyProperty