FocusBehavior Class

Allows you to set the focus to a UI control without utilizing code-behind.

Namespace: DevExpress.Mvvm.UI

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

[TargetType(typeof(Control))]
public class FocusBehavior :
    EventTriggerBase<Control>
<TargetType(GetType(Control))>
Public Class FocusBehavior
    Inherits EventTriggerBase(Of Control)

Remarks

See FocusBehavior to learn more.

Examples

NOTE

A complete sample project is available at https://github.com/DevExpress-Examples/how-to-use-focusbehavior-t122987.

using DevExpress.Mvvm;
using DevExpress.Mvvm.DataAnnotations;

namespace Example.ViewModel {
    [POCOViewModel]
    public class MainViewModel {
    }
}

Inheritance

Object
DispatcherObject
DependencyObject
Freezable
Animatable
DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase
DevExpress.Mvvm.UI.Interactivity.Behavior
DevExpress.Mvvm.UI.Interactivity.TriggerBase
DevExpress.Mvvm.UI.Interactivity.TriggerBase<Control>
See Also