Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / ControlBase Class / IsActive Property


In This Topic
    IsActive Property (ControlBase)
    In This Topic
    Gets a value indicating whether the control is keyboard focus within or not.
    Syntax
    'Declaration
     
    <BrowsableAttribute(False)>
    Public ReadOnly Property IsActive As Boolean
    'Usage
     
    Dim instance As ControlBase
    Dim value As Boolean
     
    value = instance.IsActive
    [Browsable(false)]
    public bool IsActive {get;}

    Property Value

    true if this instance is keyboard focus within; otherwise, false.
    Remarks

    Control is active when keyboard focus is in the control or the subtree of the control, or in the subtree of the popup whose target/parent is set to this control, or the sub popup chain of the popup whose target/parent is this control.

    For example, when keyboard focus is in the context menu opened in a GrapeCity.Windows.InputMan.GcDateTime, it's active; when keyboard focus is in the context menu of the drop down calculator of the GrapeCity.Windows.InputMan.GcNumber, it's also active.

    Move focus to html control or leave browser, IM control's IsActive still is true ( for editor controls, its display text doesn't show, side buttons whose visibility is set to ButtonVisibility.ShowOnFocus still shows).

    See Also