FragmentNavigationEventArgs.Handled Property

Definition

Gets or sets a value that indicates whether the fragment navigation has been handled.

public bool Handled { get; set; }

Property Value

true if the navigation has been handled; otherwise, false.

Remarks

If Handled is set to false, the system attempts to find an element with the name of the fragment and bring it into view.

When you handle the FragmentNavigation event and use FragmentNavigationEventArgs to implement a custom content fragment handling implementation, you need to set Handled is set to true to override the default behavior.

Applies to

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9