Skip to content

Commit 6b15e7b

Browse files
committed
Use #region to help demo
1 parent 3124ee4 commit 6b15e7b

File tree

1 file changed

+19
-17
lines changed
  • Samples/Islands/DrawingIsland/DrawingCsTestApp

1 file changed

+19
-17
lines changed

Samples/Islands/DrawingIsland/DrawingCsTestApp/Program.cs

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
#region Using directives
45
using Microsoft.UI.Composition;
56
using Microsoft.UI.Content;
67
using Microsoft.UI.Dispatching;
78
using Microsoft.UI.Input;
89
using Microsoft.UI.Windowing;
910

1011
using DrawingIslandComponents;
12+
#endregion
1113

1214
var controller = DispatcherQueueController.CreateOnCurrentThread();
1315
var queue = controller.DispatcherQueue;
@@ -22,36 +24,36 @@
2224
window.Title = "Drawing C# .NET TestApp";
2325
window.Show();
2426

25-
var compositor = new Compositor();
27+
#region ...
28+
//var compositor = new Compositor();
2629

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();
3033

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);
3536

36-
#region Example 2
37+
#region ...
3738
//var lottie = LottieIslandScenario.CreateLottieIsland(compositor);
3839
//siteBridge.Connect(lottie.Island);
39-
#endregion
4040

41-
#region Example 3
41+
#region ...
4242
//var island = DuckScenario.CreateIsland(compositor);
4343
//siteBridge.Connect(island);
44-
#endregion
4544

46-
#region Example 4
45+
#region ...
4746
//var island = HelmetScenario.CreateIsland(compositor);
4847
//siteBridge.Connect(island);
4948
#endregion
5049

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
5557

5658
queue.RunEventLoop();
5759

0 commit comments

Comments
 (0)