Class FocusExtension
Behavior to change focus using a binded property
partially used this answer https://stackoverflow.com/a/7972361
removed the if (e.OldValue == null) that forced the IsFocused to false/true on lost/got focus
in out use case the IsFocus is updated in the view model hence here
Inheritance
FocusExtension
Assembly: Sdl.Desktop.Platform.Controls.dll
public static class FocusExtension
Fields
Declaration
public static readonly DependencyProperty IsFocusedProperty
Field Value
Methods
Declaration
public static bool? GetIsFocused(DependencyObject element)
Parameters
Returns
Declaration
public static void SetIsFocused(DependencyObject element, bool? value)
Parameters