Skip to content

Commit

Permalink
Revert "Merge branch 'user/jessecol/calc-app-compactoverlay' of https…
Browse files Browse the repository at this point in the history
…://github.com/microsoft/WindowsAppSDK-Samples into user/jessecol/calc-app-compactoverlay"

This reverts commit 5d3b8c0, reversing
changes made to 41c6b9c.
  • Loading branch information
jeffstall committed May 9, 2024
1 parent 5d3b8c0 commit 929cd01
Show file tree
Hide file tree
Showing 31 changed files with 1,464 additions and 769 deletions.
17 changes: 6 additions & 11 deletions Samples/Islands/DrawingIsland/DrawingCppTestApp/WinMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,25 @@ int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
auto controller{ winrt::DispatcherQueueController::CreateOnCurrentThread() };
auto queue = controller.DispatcherQueue();

auto compositor = winrt::Compositor();
auto island = winrt::DrawingIsland(compositor).Island();

// Associating the AppWindow with the DispatcherQueue on which the ContentIsland is created
// will ensure that the ContentIsland is Closed when the AppWindow closes.
auto window = winrt::AppWindow::Create();
window.AssociateWithDispatcherQueue(queue);
window.Closing(
[queue](auto&&, auto&&)
window.Closing([&](auto&&, auto&&)
{
// Ensure the DispatcherQueue exits the event loop on close.
queue.EnqueueEventLoopExit();
});

window.Title(L"Drawing C++ TestApp");
window.Show();

// Create a ContentSiteBridge and connect the ContentIsland to it.
auto compositor = winrt::Compositor();
auto drawing = winrt::DrawingIsland(compositor);

auto siteBridge = winrt::DesktopChildSiteBridge::Create(compositor, window.Id());
siteBridge.ResizePolicy(winrt::ContentSizePolicy::ResizeContentToParentWindow);
siteBridge.Show();
siteBridge.Connect(island);
siteBridge.Connect(drawing.Island());

// Move initial focus to the ContentIsland.
// Move initial focus to the island.
auto focusNavigationHost = winrt::InputFocusNavigationHost::GetForSiteBridge(siteBridge);
focusNavigationHost.NavigateFocus(winrt::FocusNavigationRequest::Create(
winrt::FocusNavigationReason::Programmatic));
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
116 changes: 0 additions & 116 deletions Samples/Islands/DrawingIsland/DrawingCsTestApp/DuckScenario.cs

This file was deleted.

155 changes: 0 additions & 155 deletions Samples/Islands/DrawingIsland/DrawingCsTestApp/HelmetScenario.cs

This file was deleted.

10 changes: 2 additions & 8 deletions Samples/Islands/DrawingIsland/DrawingCsTestApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,10 @@
var lottie = LottieIslandScenario.CreateLottieIsland(compositor);
siteBridge.Connect(lottie.Island);
}
else if (args.Contains("Duck"))
else if (args.Contains("SceneNode"))
{
// SceneNodeIsland
var island = DuckScenario.CreateIsland(compositor);
siteBridge.Connect(island);
}
else if (args.Contains("Helmet"))
{
// SceneNodeIsland
var island = HelmetScenario.CreateIsland(compositor);
var island = SceneNodeScenario.CreateIsland(compositor);
siteBridge.Connect(island);
}
else
Expand Down
Loading

0 comments on commit 929cd01

Please sign in to comment.