Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions components/TitleBar/src/InfoHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#if WINAPPSDK
// Licensed to the .NET Foundation under one or more agreements.
// 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
using Windows.ApplicationModel;
using Windows.Storage;
using Windows.System.Profile;
Expand Down Expand Up @@ -33,4 +37,4 @@ static InfoHelper()
);
}
}
#endif
#endif
8 changes: 6 additions & 2 deletions components/TitleBar/src/NativeMethods.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#if WINAPPSDK
// Licensed to the .NET Foundation under one or more agreements.
// 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
using System.Runtime.InteropServices;

namespace CommunityToolkit.WinUI.Controls;
Expand Down Expand Up @@ -83,4 +87,4 @@ public static IntPtr SetWindowLongAuto(IntPtr hWnd, int nIndex, IntPtr dwNewLong
[DllImport("user32.dll")]
public static extern IntPtr CallWindowProc(IntPtr lpPrevWndFunc, IntPtr hWnd, WindowMessage Msg, IntPtr wParam, IntPtr lParam);
}
#endif
#endif
4 changes: 4 additions & 0 deletions components/TitleBar/src/WndProcHelper.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// 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
using System.Runtime.InteropServices;
using WinRT.Interop;
Expand Down
2 changes: 1 addition & 1 deletion tooling