bovender framework
C# framework that implements MVVM and more
Bovender.Mvvm.Behaviors.FocusBehavior Class Reference

Focuses the first control in a window. More...

Static Public Member Functions

static bool GetFocusFirst (Control control)
 
static void SetFocusFirst (Control control, bool value)
 

Static Public Attributes

static readonly DependencyProperty FocusFirstProperty
 

Detailed Description

Focuses the first control in a window.

Credit: http://stackoverflow.com/a/8974420/270712 by Mizipzor: http://stackoverflow.com/users/56763/mizipzor; used under CC BY-SA 3.0

Definition at line 35 of file FocusFirstBehavior.cs.

Member Data Documentation

readonly DependencyProperty Bovender.Mvvm.Behaviors.FocusBehavior.FocusFirstProperty
static
Initial value:
=
DependencyProperty.RegisterAttached(
"FocusFirst",
typeof(bool),
typeof(FocusBehavior),
new PropertyMetadata(false, OnFocusFirstPropertyChanged))

Definition at line 37 of file FocusFirstBehavior.cs.


The documentation for this class was generated from the following file: