Skip to content

Commit 0e07f71

Browse files
committed
Fix merge
- Niklas and Adib created conflict with UIA refactoring. - Aligned sample "main" steps for Cs and Cpp.
1 parent 3ed8ed4 commit 0e07f71

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Samples/Islands/DrawingIsland/DrawingCppTestApp/WinMain.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
2121
auto controller{ winrt::DispatcherQueueController::CreateOnCurrentThread() };
2222
auto queue = controller.DispatcherQueue();
2323

24-
auto compositor = winrt::Compositor();
25-
auto island = winrt::DrawingIsland(compositor).Island();
26-
2724
// Associating the AppWindow with the DispatcherQueue on which the ContentIsland is created
2825
// will ensure that the ContentIsland is Closed when the AppWindow closes.
2926
auto window = winrt::AppWindow::Create();
@@ -38,6 +35,10 @@ int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
3835
window.Title(L"Drawing C++ TestApp");
3936
window.Show();
4037

38+
// Create the Island content in the window.
39+
auto compositor = winrt::Compositor();
40+
auto island = winrt::DrawingIsland(compositor).Island();
41+
4142
// Create a ContentSiteBridge and connect the ContentIsland to it.
4243
auto siteBridge = winrt::DesktopChildSiteBridge::Create(compositor, window.Id());
4344
siteBridge.ResizePolicy(winrt::ContentSizePolicy::ResizeContentToParentWindow);

Samples/Islands/DrawingIsland/DrawingCsTestApp/Program.cs

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

4-
using System;
5-
6-
using Microsoft.UI;
74
using Microsoft.UI.Composition;
85
using Microsoft.UI.Content;
96
using Microsoft.UI.Dispatching;

Samples/Islands/DrawingIsland/DrawingIslandComponents/DrawingIslandComponents.vcxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@
130130
<ClInclude Include="AutomationFragment.h" />
131131
<ClInclude Include="AutomationPeer.h" />
132132
<ClInclude Include="DeviceLostHelper.h" />
133-
<ClInclude Include="IslandFragmentRoot.h" />
134-
<ClInclude Include="NodeSimpleFragment.h" />
135133
<ClInclude Include="pch.h" />
136134
<ClInclude Include="DrawingIsland.h">
137135
<DependentUpon>Components.idl</DependentUpon>
@@ -144,8 +142,6 @@
144142
<ClCompile Include="AutomationFragmentRoot.cpp" />
145143
<ClCompile Include="AutomationFragment.cpp" />
146144
<ClCompile Include="DeviceLostHelper.cpp" />
147-
<ClCompile Include="IslandFragmentRoot.cpp" />
148-
<ClCompile Include="NodeSimpleFragment.cpp" />
149145
<ClCompile Include="pch.cpp">
150146
<PrecompiledHeader>Create</PrecompiledHeader>
151147
</ClCompile>

0 commit comments

Comments
 (0)