Skip to content

Commit 0b0e1fd

Browse files
Disable warning for CA1001 with disposible in TransitionHelper
See #407
1 parent 12abffe commit 0b0e1fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/TransitionHelper/src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
88
<RootNamespace>CommunityToolkit.Labs.WinUI.TransitionHelperRns</RootNamespace>
9+
10+
<!-- TODO: Putting here as seems to get flagged on different partials, need to deal with TokenSource being disposible -->
11+
<!-- See: https://github.com/CommunityToolkit/Labs-Windows/issues/407 -->
12+
<NoWarn>$(NoWarn);CA1001</NoWarn>
913
</PropertyGroup>
1014

1115
<!-- Sets this up as a toolkit component's source project -->

components/TransitionHelper/src/TransitionHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.Labs.WinUI;
1010
/// A animation helper that morphs between two controls.
1111
/// </summary>
1212
[ContentProperty(Name = nameof(Configs))]
13-
public sealed partial class TransitionHelper
13+
public sealed partial class TransitionHelper // TODO: Implement IDisposible? or resolve CA1001 another way?
1414
{
1515
private sealed record AnimatedElements<T>(
1616
IDictionary<string, T> ConnectedElements,

0 commit comments

Comments
 (0)