WebView.XYFocusDown Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the object that gets focus when a user presses the Directional Pad (D-pad) down.
public:
property DependencyObject ^ XYFocusDown { DependencyObject ^ get(); void set(DependencyObject ^ value); };
DependencyObject XYFocusDown();
void XYFocusDown(DependencyObject value);
public DependencyObject XYFocusDown { get; set; }
var dependencyObject = webView.xYFocusDown;
webView.xYFocusDown = dependencyObject;
Public Property XYFocusDown As DependencyObject
<WebView XYFocusDown="{x:Bind dependencyObjectValue}"/>
The object that gets focus when a user presses the Directional Pad (D-pad).
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
XYFocusDown is supported only on the Xbox device family, and only when using a game pad or remote control. The property is ignored otherwise.
For more info about this property, see the XY focus navigation and interaction section of the Designing for Xbox and TV article.
The XYFocusDown property is not available prior to Windows 10, version 1607. If your app’s 'minimum platform version' setting in Microsoft Visual Studio is less than the 'introduced version' shown in the Requirements block later in this page, you must design and test your app to account for this. For more info, see Version adaptive code.
To avoid exceptions when your app runs on previous versions of Windows 10, do not set this property in XAML or use it without performing a runtime check. This example shows how to use the ApiInformation class to check for the presence of this property before you set it.
if (ApiInformation.IsPropertyPresent("Windows.UI.Xaml.Controls.WebView", "XYFocusDown"))
{
webViewA.XYFocusDown = button1;
}
Product | Versions |
---|---|
WinRT | Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |