Skip to content

Commit e34446c

Browse files
Merge pull request #2463 from citelao/patch-4
[FocusManager] Document that some API only works for UWP
2 parents eba68e6 + 54b60a3 commit e34446c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

windows.ui.xaml.input/focusmanager_getfocusedelement_1183614552.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ The object that has focus. Typically, this is a [Control](../windows.ui.xaml.con
2222

2323
## -remarks
2424

25+
> [!WARNING]
26+
> For WinUI 3 apps, this method always returns `null` as it relies on CoreWindow APIs not supported by WinUI 3.
27+
>
28+
> Instead, use the [FocusManager.GetFocusedElement(XamlRoot)](./windows.ui.xaml.input.focusmanager.getfocusedelement#windows-ui-xaml-input-focusmanager-getfocusedelement(windows-ui-xaml-xamlroot))
29+
> overload, where `XamlRoot` can be retrieved any loaded UIElement through the [XamlRoot](/uwp/api/windows.ui.xaml.uielement.xamlroot) property.
30+
2531
## -examples
2632

2733
## -see-also

0 commit comments

Comments
 (0)