Compare commits

...

10 Commits

Author SHA1 Message Date
Shawn Yuan (from Dev Box)
d9077f150a fix issue 2025-12-19 14:41:23 +08:00
Shawn Yuan (from Dev Box)
dd885cfdd9 update 2025-12-19 13:42:49 +08:00
Shawn Yuan (from Dev Box)
e884b6d7b2 update 2025-12-19 12:55:01 +08:00
Shawn Yuan (from Dev Box)
89ca9ba135 update 2025-12-19 11:19:15 +08:00
Shawn Yuan (from Dev Box)
405c3a2393 update 2025-12-19 11:01:32 +08:00
Shawn Yuan (from Dev Box)
eaa434b1d8 update 2025-12-19 09:27:49 +08:00
Shawn Yuan (from Dev Box)
5d44d593ea update 2025-12-18 17:36:04 +08:00
Shawn Yuan (from Dev Box)
f74a2c7a5d update 2025-12-18 16:46:44 +08:00
Shawn Yuan (from Dev Box)
d245e904d7 update 2025-12-18 16:12:20 +08:00
Shawn Yuan (from Dev Box)
f2f73b831e init 2025-12-18 16:07:55 +08:00
3 changed files with 12 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ jobs:
MSBuildMainBuildTargets: Build
${{ insert }}: ${{ parameters.variables }}
${{ if eq(parameters.useLatestWinAppSDK, true) }}:
RestoreAdditionalProjectSourcesArg: '/p:RestoreAdditionalProjectSources="$(Build.SourcesDirectory)\localpackages\NugetPackages"'
RestoreAdditionalProjectSourcesArg: '/p:RestoreAdditionalProjectSources="$(Build.SourcesDirectory)\localpackages\NugetPackages" /p:IgnoreExperimentalWarnings=true'
${{ else }}:
RestoreAdditionalProjectSourcesArg: ''
displayName: Build

View File

@@ -24,4 +24,8 @@
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Restore" Properties="RestoreInProgress=true" BuildInParallel="false" />
</Target>
<PropertyGroup Condition="'$(IgnoreExperimentalWarnings)' == 'true'">
<NoWarn>$(NoWarn);CS8305;SA1500;CA1852</NoWarn>
</PropertyGroup>
</Project>

View File

@@ -8,6 +8,8 @@ using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Windows.Foundation;
using ToolkitStretchChild = CommunityToolkit.WinUI.Controls.StretchChild;
namespace Microsoft.CmdPal.UI.Controls;
/// <summary>
@@ -177,9 +179,9 @@ public sealed partial class WrapPanel : Panel
/// <summary>
/// Gets or sets a value indicating how to arrange child items
/// </summary>
public StretchChild StretchChild
public ToolkitStretchChild StretchChild
{
get { return (StretchChild)GetValue(StretchChildProperty); }
get { return (ToolkitStretchChild)GetValue(StretchChildProperty); }
set { SetValue(StretchChildProperty, value); }
}
@@ -190,9 +192,9 @@ public sealed partial class WrapPanel : Panel
public static readonly DependencyProperty StretchChildProperty =
DependencyProperty.Register(
nameof(StretchChild),
typeof(StretchChild),
typeof(ToolkitStretchChild),
typeof(WrapPanel),
new PropertyMetadata(StretchChild.None, LayoutPropertyChanged));
new PropertyMetadata(ToolkitStretchChild.None, LayoutPropertyChanged));
/// <summary>
/// Identifies the IsFullLine attached dependency property.
@@ -397,7 +399,7 @@ public sealed partial class WrapPanel : Panel
Arrange(Children[i]);
}
Arrange(Children[lastIndex], StretchChild == StretchChild.Last);
Arrange(Children[lastIndex], StretchChild == ToolkitStretchChild.Last);
if (currentRow.ChildrenRects.Count > 0)
{