Skip to content

Commit f841534

Browse files
authored
Merge pull request #112 from CommunityToolkit/fix/build-errors
Fixed build errors when building Wasm with WinUI 3
2 parents 5b51ba3 + 2776517 commit f841534

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

CommunityToolkit.App.Shared/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public App()
3535
/// <param name="e">Details about the launch request and process.</param>
3636
protected override void OnLaunched(LaunchActivatedEventArgs e)
3737
{
38-
#if WINAPPSDK
38+
#if WINDOWS_WINAPPSDK
3939
currentWindow = new Window();
4040
currentWindow.Title = "Toolkit Labs Gallery";
4141
currentWindow.AppWindow.SetIcon("Assets/Icon.ico");

CommunityToolkit.App.Shared/Controls/TitleBar/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#if WINAPPSDK
5+
#if WINDOWS_WINAPPSDK
66
using System.Runtime.InteropServices;
77
using WinRT.Interop;
88
using Microsoft.UI;

CommunityToolkit.App.Shared/Controls/TitleBar/TitleBar.WASDK.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#if WINAPPSDK
5+
#if WINDOWS_WINAPPSDK
66
using Microsoft.UI;
77
using Microsoft.UI.Windowing;
88

CommunityToolkit.App.Shared/Controls/TitleBar/TitleBar.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private void TitleBar_SizeChanged(object sender, SizeChangedEventArgs e)
109109
VisualStateManager.GoToState(this, WideState, true);
110110
}
111111

112-
#if WINAPPSDK
112+
#if WINDOWS_WINAPPSDK
113113
SetDragRegionForCustomTitleBar();
114114
#endif
115115
}
@@ -129,7 +129,7 @@ private void Configure()
129129
#if WINDOWS_UWP && !HAS_UNO
130130
SetUWPTitleBar();
131131
#endif
132-
#if WINAPPSDK
132+
#if WINDOWS_WINAPPSDK
133133
SetWASDKTitleBar();
134134
#endif
135135
}
@@ -139,7 +139,7 @@ public void Reset()
139139
#if WINDOWS_UWP && !HAS_UNO
140140
ResetUWPTitleBar();
141141
#endif
142-
#if WINAPPSDK
142+
#if WINDOWS_WINAPPSDK
143143
ResetWASDKTitleBar();
144144
#endif
145145
}
@@ -185,7 +185,7 @@ private void Update()
185185
VisualStateManager.GoToState(this, FooterCollapsedState, true);
186186
}
187187

188-
#if WINAPPSDK
188+
#if WINDOWS_WINAPPSDK
189189
SetDragRegionForCustomTitleBar();
190190
#endif
191191
}

0 commit comments

Comments
 (0)