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
파일 보기 프로젝트 열기: nikhilk/silverlightfx 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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