File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Samples/Islands/DrawingIsland Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 55
66namespace winrt
77{
8- using namespace Microsoft ::UI;
98 using namespace Microsoft ::UI::Composition;
109 using namespace Microsoft ::UI::Content;
1110 using namespace Microsoft ::UI::Dispatching;
Original file line number Diff line number Diff line change 1- using System ;
2-
3- using Microsoft . UI ;
1+ // Copyright (c) Microsoft Corporation.
2+ // Licensed under the MIT License.
3+
44using Microsoft . UI . Composition ;
55using Microsoft . UI . Content ;
66using Microsoft . UI . Dispatching ;
3030siteBridge . Show ( ) ;
3131siteBridge . Connect ( drawing . Island ) ;
3232
33+ // Move initial focus to the island.
34+ var focusNavigationHost = InputFocusNavigationHost . GetForSiteBridge ( siteBridge ) ;
35+ focusNavigationHost . NavigateFocus ( FocusNavigationRequest . Create (
36+ FocusNavigationReason . Programmatic ) ) ;
37+
3338queue . RunEventLoop ( ) ;
3439
3540controller . ShutdownQueue ( ) ;
You can’t perform that action at this time.
0 commit comments