Skip to content

Commit 4e7e574

Browse files
authored
Updated to WinAppSdk 1.6, fixed AoT annotations (#457)
* Fixing CSWinRT1028 warnings, adding partials for AoT. * Suppress internally generated error CsWinRT1028, add notes * Updated tooling pointer * Bump tooling to latest wasdk/1.6 * Fixing FontWeight and FontStyle namespaces * Update tooling * Update tooling * Fixed bad property declaration * Update Microsoft.WindowsAppSDK to 1.6.240807006-preview1, remove CsWinRT1028 suppression. * Update WindowsSdkPackageVersion for Wasdk 1.6 preview1 * Update transient WebView2 reference to 1.0.2730-prerelease * Fixed CsWinRT1028, marked partial for AoT * Fixed CsWinRT1028, marked partial for AoT * Revert WindowsSdkPackageVersion to 10.0.22621.37-preview for WindowsAppSDK 1.6 Preview1 * Update tooling with latest CsWinRT1028 fixes * Update tooling pointer * Update tooling pointer * Remove clean task to resolve #457 (comment) * Implement ColorHelper.ToDisplayName on WinUI 3 * Handle missing ColorHelper.ToDisplayName implementation on Uno. See unoplatform/uno#18004. * Bump tooling to latest main
1 parent 4b6c77a commit 4e7e574

File tree

63 files changed

+83
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+83
-70
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"omnisharp.defaultLaunchSolution": "CommunityToolkit.AllComponents.sln",
32
"omnisharp.disableMSBuildDiagnosticWarning": true,
43
"omnisharp.enableRoslynAnalyzers": true,
54
"omnisharp.useGlobalMono": "never",
@@ -8,5 +7,6 @@
87
"csharp.suppressDotnetRestoreNotification": true,
98
"csharp.semanticHighlighting.enabled": true,
109
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
11-
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true
10+
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
11+
"dotnet.defaultSolution": "CommunityToolkit.AllComponents.sln"
1212
}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2727
<NoWarn>$(NoWarn);Uno0001</NoWarn>
2828
<!-- TODO: Turn off sample pages needing samples for now, for initial commit -->
29-
<NoWarn>$(NoWarn);TKSMPL0014</NoWarn>
29+
<NoWarn>$(NoWarn);TKSMPL0014;</NoWarn>
3030
</PropertyGroup>
3131

3232
<Import Project="Windows.Toolkit.Common.props" />

components/Animations/src/Xaml/AnimationScope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Animations;
88
/// A container of <see cref="ITimeline"/> elements that can be used to conceptually group animations
99
/// together and to assign shared properties to be applied to all the contained items automatically.
1010
/// </summary>
11-
public sealed class AnimationScope : DependencyObjectCollection, ITimeline
11+
public sealed partial class AnimationScope : DependencyObjectCollection, ITimeline
1212
{
1313
/// <summary>
1414
/// Gets or sets the optional initial delay for the animation.

components/Animations/src/Xaml/AnimationSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Animations;
1717
/// A collection of animations that can be grouped together. This type represents a composite animation
1818
/// (such as <see cref="Storyboard"/>) that can be executed on a given element.
1919
/// </summary>
20-
public sealed class AnimationSet : DependencyObjectCollection
20+
public sealed partial class AnimationSet : DependencyObjectCollection
2121
{
2222
/// <summary>
2323
/// A conditional weak table storing <see cref="CancellationTokenSource"/> instances associated with animations

components/Animations/src/Xaml/ImplicitAnimationSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace CommunityToolkit.WinUI.Animations;
3636
/// one <see cref="ImplicitAnimationSet"/> to another, and doing so will add unnecessary runtime overhead over time. If you want to apply the same animations
3737
/// to multiple elements, simply create another <see cref="ImplicitAnimationSet"/> instance and another set of animations with the same properties within it.
3838
/// </remarks>
39-
public sealed class ImplicitAnimationSet : DependencyObjectCollection
39+
public sealed partial class ImplicitAnimationSet : DependencyObjectCollection
4040
{
4141
/// <summary>
4242
/// Raised whenever any configuration change occurrs within the current <see cref="ImplicitAnimationSet"/> instance.

components/Collections/src/AdvancedCollectionView/VectorChangedEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Collections;
77
/// <summary>
88
/// Vector changed EventArgs
99
/// </summary>
10-
internal class VectorChangedEventArgs : IVectorChangedEventArgs
10+
internal partial class VectorChangedEventArgs : IVectorChangedEventArgs
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="VectorChangedEventArgs"/> class.

components/ColorPicker/src/Converters/AccentColorConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI.Controls;
1111
/// <summary>
1212
/// Creates an accent color for a base color value.
1313
/// </summary>
14-
public class AccentColorConverter : IValueConverter
14+
public partial class AccentColorConverter : IValueConverter
1515
{
1616
/// <summary>
1717
/// The amount to change the Value channel for each accent color step.

components/ColorPicker/src/Converters/ColorToHexConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.WinUI.Controls;
1010
/// <summary>
1111
/// Converts a color to a hex string and vice versa.
1212
/// </summary>
13-
public class ColorToHexConverter : IValueConverter
13+
public partial class ColorToHexConverter : IValueConverter
1414
{
1515
/// <inheritdoc/>
1616
public object Convert(

components/ColorPicker/src/Converters/ContrastBrushConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Controls;
1515
/// <summary>
1616
/// Gets a color, either black or white, depending on the brightness of the supplied color.
1717
/// </summary>
18-
public class ContrastBrushConverter : IValueConverter
18+
public partial class ContrastBrushConverter : IValueConverter
1919
{
2020
/// <summary>
2121
/// Gets or sets the alpha channel threshold below which a default color is used instead of black/white.

components/Converters/src/BoolNegationConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// Value converter that applies NOT operator to a <see cref="bool"/> value.
99
/// </summary>
10-
public class BoolNegationConverter : IValueConverter
10+
public partial class BoolNegationConverter : IValueConverter
1111
{
1212
/// <summary>
1313
/// Convert a boolean value to its negation.

0 commit comments

Comments
 (0)