Search Results for

    Show / Hide Table of Contents

    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
    object
    FocusExtension
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.Desktop.Platform.Controls.Behaviours
    Assembly: Sdl.Desktop.Platform.Controls.dll
    Syntax
    public static class FocusExtension

    Fields

    IsFocusedProperty

    Declaration
    public static readonly DependencyProperty IsFocusedProperty
    Field Value
    Type Description
    DependencyProperty

    Methods

    GetIsFocused(DependencyObject)

    Declaration
    public static bool? GetIsFocused(DependencyObject element)
    Parameters
    Type Name Description
    DependencyObject element
    Returns
    Type Description
    bool?

    SetIsFocused(DependencyObject, bool?)

    Declaration
    public static void SetIsFocused(DependencyObject element, bool? value)
    Parameters
    Type Name Description
    DependencyObject element
    bool? value
    In this article
    • Fields
      • IsFocusedProperty
    • Methods
      • GetIsFocused(DependencyObject)
      • SetIsFocused(DependencyObject, bool?)
    Back to top Generated by DocFX