C# Class System.Windows.Controls.Extensions.Control

Represents a set of attached properties for controls.
Afficher le fichier Open project: lecode-official/mvvm-framework

Méthodes publiques

Свойство Type Description
HasFocusProperty DependencyProperty
IsValidProperty DependencyProperty

Méthodes publiques

Méthode Description
GetHasFocus ( DependencyObject control ) : bool

Gets a value that determines whether the control to which the HasFocusProperty attached property has been attached, currently has the focus.

GetIsValid ( DependencyObject frameworkElement ) : bool

Gets the value of the IsValidProperty attached property.

SetHasFocus ( DependencyObject control, bool value ) : void

Sets a value that determines whether the control to which the HasFocusProperty attached property has been attached, currently has the focus.

SetIsValid ( DependencyObject frameworkElement, bool value ) : void

Sets the value of the IsValidProperty attached property.

Method Details

GetHasFocus() public static méthode

Gets a value that determines whether the control to which the HasFocusProperty attached property has been attached, currently has the focus.
public static GetHasFocus ( DependencyObject control ) : bool
control DependencyObject The control for which is to be determined whether is has the focus or not.
Résultat bool

GetIsValid() public static méthode

Gets the value of the IsValidProperty attached property.
public static GetIsValid ( DependencyObject frameworkElement ) : bool
frameworkElement DependencyObject The framework element which is used to get the value.
Résultat bool

SetHasFocus() public static méthode

Sets a value that determines whether the control to which the HasFocusProperty attached property has been attached, currently has the focus.
public static SetHasFocus ( DependencyObject control, bool value ) : void
control DependencyObject The control whose is to be set.
value bool The new value for the . If the value is true, then the control is focused, otherwise the focus is move to the next control.
Résultat void

SetIsValid() public static méthode

Sets the value of the IsValidProperty attached property.
public static SetIsValid ( DependencyObject frameworkElement, bool value ) : void
frameworkElement DependencyObject The framework element which is used to set the value.
value bool The value that is to be set.
Résultat void

Property Details

HasFocusProperty public_oe static_oe property

Contains the attached property, which determinse whether the control to which the property is attached currently has the focus.
public static DependencyProperty HasFocusProperty
Résultat DependencyProperty

IsValidProperty public_oe static_oe property

Contains the dependency property that contains the a value that determines whether the content is valid.
public static DependencyProperty IsValidProperty
Résultat DependencyProperty