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 5
5
6
6
namespace winrt
7
7
{
8
- using namespace Microsoft ::UI;
9
8
using namespace Microsoft ::UI::Composition;
10
9
using namespace Microsoft ::UI::Content;
11
10
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
+
4
4
using Microsoft . UI . Composition ;
5
5
using Microsoft . UI . Content ;
6
6
using Microsoft . UI . Dispatching ;
30
30
siteBridge . Show ( ) ;
31
31
siteBridge . Connect ( drawing . Island ) ;
32
32
33
+ // Move initial focus to the island.
34
+ var focusNavigationHost = InputFocusNavigationHost . GetForSiteBridge ( siteBridge ) ;
35
+ focusNavigationHost . NavigateFocus ( FocusNavigationRequest . Create (
36
+ FocusNavigationReason . Programmatic ) ) ;
37
+
33
38
queue . RunEventLoop ( ) ;
34
39
35
40
controller . ShutdownQueue ( ) ;
You can’t perform that action at this time.
0 commit comments