Skip to content

Commit

Permalink
Merge pull request #513 from ghost1372/niels9001/titlebar-experiment
Browse files Browse the repository at this point in the history
Add Missing #if WINAPPSDK
  • Loading branch information
niels9001 authored Nov 30, 2023
2 parents 4c4f776 + b71ccbb commit 91a032c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/TitleBar/src/InfoHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Windows.ApplicationModel;
#if WINAPPSDK
using Windows.ApplicationModel;

Check failure on line 2 in components/TitleBar/src/InfoHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/InfoHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/InfoHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/InfoHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)
using Windows.Storage;
using Windows.System.Profile;

Expand Down Expand Up @@ -32,3 +33,4 @@ static InfoHelper()
);
}
}
#endif
4 changes: 3 additions & 1 deletion components/TitleBar/src/NativeMethods.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Runtime.InteropServices;
#if WINAPPSDK
using System.Runtime.InteropServices;

Check failure on line 2 in components/TitleBar/src/NativeMethods.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/NativeMethods.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/NativeMethods.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

namespace CommunityToolkit.WinUI.Controls;
internal static class NativeMethods
Expand Down Expand Up @@ -82,3 +83,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
4 changes: 3 additions & 1 deletion components/TitleBar/src/WndProcHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Runtime.InteropServices;
#if WINAPPSDK
using System.Runtime.InteropServices;

Check failure on line 2 in components/TitleBar/src/WndProcHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/WndProcHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)

Check failure on line 2 in components/TitleBar/src/WndProcHelper.cs

View workflow job for this annotation

GitHub Actions / build (WinUI2)

A source file is missing a required header. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0073)
using WinRT.Interop;

namespace CommunityToolkit.WinUI.Controls;
Expand Down Expand Up @@ -47,3 +48,4 @@ public void RegisterInputNonClientPointerSourceWndProc(WNDPROC wndProc)
}
}
}
#endif

0 comments on commit 91a032c

Please sign in to comment.