From 9b608832615f790530c6cef2af373b3408ae8f99 Mon Sep 17 00:00:00 2001 From: michael-hawker <24302614+michael-hawker@users.noreply.github.com> Date: Tue, 14 Mar 2023 13:02:20 -0700 Subject: [PATCH] Disable warning for CA1001 with disposible in TransitionHelper See https://github.com/CommunityToolkit/Labs-Windows/issues/407 --- .../src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj | 4 ++++ components/TransitionHelper/src/TransitionHelper.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/TransitionHelper/src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj b/components/TransitionHelper/src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj index cdeb5426a..b3dd7bc34 100644 --- a/components/TransitionHelper/src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj +++ b/components/TransitionHelper/src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj @@ -6,6 +6,10 @@ CommunityToolkit.Labs.WinUI.TransitionHelperRns + + + + CA1001 diff --git a/components/TransitionHelper/src/TransitionHelper.cs b/components/TransitionHelper/src/TransitionHelper.cs index 06fbb6de5..e4f704ab7 100644 --- a/components/TransitionHelper/src/TransitionHelper.cs +++ b/components/TransitionHelper/src/TransitionHelper.cs @@ -10,7 +10,7 @@ namespace CommunityToolkit.Labs.WinUI; /// A animation helper that morphs between two controls. /// [ContentProperty(Name = nameof(Configs))] -public sealed partial class TransitionHelper +public sealed partial class TransitionHelper // TODO: Implement IDisposible? or resolve CA1001 another way? { private sealed record AnimatedElements( IDictionary ConnectedElements,