|
1 | 1 | // Copyright (c) Microsoft Corporation.
|
2 | 2 | // Licensed under the MIT License.
|
3 | 3 |
|
| 4 | +#region Using directives |
4 | 5 | using Microsoft.UI.Composition;
|
5 | 6 | using Microsoft.UI.Content;
|
6 | 7 | using Microsoft.UI.Dispatching;
|
7 | 8 | using Microsoft.UI.Input;
|
8 | 9 | using Microsoft.UI.Windowing;
|
9 | 10 |
|
10 | 11 | using DrawingIslandComponents;
|
| 12 | +#endregion |
11 | 13 |
|
12 | 14 | var controller = DispatcherQueueController.CreateOnCurrentThread();
|
13 | 15 | var queue = controller.DispatcherQueue;
|
|
22 | 24 | window.Title = "Drawing C# .NET TestApp";
|
23 | 25 | window.Show();
|
24 | 26 |
|
25 |
| -var compositor = new Compositor(); |
| 27 | +#region ... |
| 28 | +//var compositor = new Compositor(); |
26 | 29 |
|
27 |
| -var siteBridge = DesktopChildSiteBridge.Create(compositor, window.Id); |
28 |
| -siteBridge.ResizePolicy = ContentSizePolicy.ResizeContentToParentWindow; |
29 |
| -siteBridge.Show(); |
| 30 | +//var siteBridge = DesktopChildSiteBridge.Create(compositor, window.Id); |
| 31 | +//siteBridge.ResizePolicy = ContentSizePolicy.ResizeContentToParentWindow; |
| 32 | +//siteBridge.Show(); |
30 | 33 |
|
31 |
| -#region Example 1 |
32 |
| -var drawing = new DrawingIsland(compositor); |
33 |
| -siteBridge.Connect(drawing.Island); |
34 |
| -#endregion |
| 34 | +//var drawing = new DrawingIsland(compositor); |
| 35 | +//siteBridge.Connect(drawing.Island); |
35 | 36 |
|
36 |
| -#region Example 2 |
| 37 | +#region ... |
37 | 38 | //var lottie = LottieIslandScenario.CreateLottieIsland(compositor);
|
38 | 39 | //siteBridge.Connect(lottie.Island);
|
39 |
| -#endregion |
40 | 40 |
|
41 |
| -#region Example 3 |
| 41 | +#region ... |
42 | 42 | //var island = DuckScenario.CreateIsland(compositor);
|
43 | 43 | //siteBridge.Connect(island);
|
44 |
| -#endregion |
45 | 44 |
|
46 |
| -#region Example 4 |
| 45 | +#region ... |
47 | 46 | //var island = HelmetScenario.CreateIsland(compositor);
|
48 | 47 | //siteBridge.Connect(island);
|
49 | 48 | #endregion
|
50 | 49 |
|
51 |
| -// Move initial focus to the island. |
52 |
| -var focusNavigationHost = InputFocusNavigationHost.GetForSiteBridge(siteBridge); |
53 |
| -focusNavigationHost.NavigateFocus(FocusNavigationRequest.Create( |
54 |
| - FocusNavigationReason.Programmatic)); |
| 50 | +#endregion |
| 51 | +#endregion |
| 52 | + |
| 53 | +//var focusNavigationHost = InputFocusNavigationHost.GetForSiteBridge(siteBridge); |
| 54 | +//focusNavigationHost.NavigateFocus(FocusNavigationRequest.Create( |
| 55 | +// FocusNavigationReason.Programmatic)); |
| 56 | +#endregion |
55 | 57 |
|
56 | 58 | queue.RunEventLoop();
|
57 | 59 |
|
|
0 commit comments