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

Represents a set of attached properties for controls.
Exibir arquivo Open project: lecode-official/mvvm-framework

Public Properties

Property Type Description
HasFocusProperty DependencyProperty
IsValidProperty DependencyProperty

Public Methods

Method 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 method

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.
return bool

GetIsValid() public static method

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.
return bool

SetHasFocus() public static method

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.
return void

SetIsValid() public static method

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.
return 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
return 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
return DependencyProperty