Skip to content

Commit

Permalink
Merge pull request #112 from CommunityToolkit/fix/build-errors
Browse files Browse the repository at this point in the history
Fixed build errors when building Wasm with WinUI 3
  • Loading branch information
Arlodotexe authored Jul 25, 2023
2 parents 5b51ba3 + 2776517 commit f841534
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CommunityToolkit.App.Shared/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public App()
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
#if WINAPPSDK
#if WINDOWS_WINAPPSDK
currentWindow = new Window();
currentWindow.Title = "Toolkit Labs Gallery";
currentWindow.AppWindow.SetIcon("Assets/Icon.ico");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINAPPSDK
#if WINDOWS_WINAPPSDK
using System.Runtime.InteropServices;
using WinRT.Interop;
using Microsoft.UI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINAPPSDK
#if WINDOWS_WINAPPSDK
using Microsoft.UI;
using Microsoft.UI.Windowing;

Expand Down
8 changes: 4 additions & 4 deletions CommunityToolkit.App.Shared/Controls/TitleBar/TitleBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void TitleBar_SizeChanged(object sender, SizeChangedEventArgs e)
VisualStateManager.GoToState(this, WideState, true);
}

#if WINAPPSDK
#if WINDOWS_WINAPPSDK
SetDragRegionForCustomTitleBar();
#endif
}
Expand All @@ -129,7 +129,7 @@ private void Configure()
#if WINDOWS_UWP && !HAS_UNO
SetUWPTitleBar();
#endif
#if WINAPPSDK
#if WINDOWS_WINAPPSDK
SetWASDKTitleBar();
#endif
}
Expand All @@ -139,7 +139,7 @@ public void Reset()
#if WINDOWS_UWP && !HAS_UNO
ResetUWPTitleBar();
#endif
#if WINAPPSDK
#if WINDOWS_WINAPPSDK
ResetWASDKTitleBar();
#endif
}
Expand Down Expand Up @@ -185,7 +185,7 @@ private void Update()
VisualStateManager.GoToState(this, FooterCollapsedState, true);
}

#if WINAPPSDK
#if WINDOWS_WINAPPSDK
SetDragRegionForCustomTitleBar();
#endif
}
Expand Down

0 comments on commit f841534

Please sign in to comment.