This commit is contained in:
Dan Clark
2025-02-06 21:21:29 +00:00
parent 8bbfc415e6
commit 63f448f490
11 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
using Microsoft.UI.Xaml;
using Microsoft.Xaml.Interactions.Core;
using Microsoft.Xaml.Interactivity;
using Toolkit.Foundation;
namespace Toolkit.UI.WinUI;
+1 -1
View File
@@ -1,4 +1,4 @@
using Microsoft.Xaml.Interactions.Core;
using Microsoft.Xaml.Interactivity;
using System;
using System.ComponentModel;
using System.Globalization;
+3 -4
View File
@@ -10,16 +10,15 @@
win10-x86;win10-x64;win10-arm64
</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<WindowsSdkPackageVersion>10.0.19041.41</WindowsSdkPackageVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.241114003" />
<PackageReference Include="WinUIEx" Version="2.5.0" />
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.0.9" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.250108002" />
<PackageReference Include="WinUIEx" Version="2.5.1" />
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" Version="3.0.0" />
</ItemGroup>
<ItemGroup>
+1 -1
View File
@@ -166,7 +166,7 @@ public static partial class WindowExtensions
HBRUSH hBrush = PInvoke.CreateSolidBrush(new COLORREF((uint)ToWin32(Color.Black)));
_ = PInvoke.FillRect(new HDC((nint)wParam.Value),
&rect, hBrush);
_ = PInvoke.DeleteObject(new HGDIOBJ(hBrush));
_ = PInvoke.DeleteObject(new HGDIOBJ((void*)hBrush));
return new LRESULT(1);
}