LosingFocusEventArgs class

[This documentation is preliminary and is subject to change.]

Provides event data for the LosingFocus event.

Inheritance

Object

RoutedEventArgs

LosingFocusEventArgs

Syntax

public class LosingFocusEventArgs : RoutedEventArgs
Public Class LosingFocusEventArgs
    Inherits RoutedEventArgs
public ref class LosingFocusEventArgs : RoutedEventArgs

Attributes

[MarshalingBehavior(Agile)]

[Threading(Both)]

[Version]

[WebHostHidden()]

Members

The LosingFocusEventArgs class has these types of members:

  • Properties

Properties

The LosingFocusEventArgs class has these properties.

Property Access type Description

Cancel

Read/write Gets or sets whether focus change is reverted.

NavigationDirection

Read-only Gets the focus change direction.

NewFocusedElement

Read/write Gets the element to receive focus if Cancel is not set to true.

OldFocusedElement

Read-only Gets the element to lose focus if Cancel is not set to true.

 

Remarks

LosingFocus is a routed event. For more info on routed events, see Events and routed events overview.

LosingFocus always fires before a corresponding GettingFocus event.

Set LosingFocusEventArgs.Cancel or GettingFocusEventArgs.Cancel to true to revert focus change.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Input Windows::UI::Xaml::Input [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

See also

Object

RoutedEventArgs

LosingFocus