Skip to content

Commit 36f4080

Browse files
committed
Explicitly disabled warning CA1001 for Uno in MarqueeText
1 parent 0c80885 commit 36f4080

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/MarqueeText/src/MarqueeText.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ namespace CommunityToolkit.Labs.WinUI.MarqueeTextRns;
2121
[TemplateVisualState(GroupName = BehaviorVisualStateGroupName, Name = LoopingVisualStateName)]
2222
[TemplateVisualState(GroupName = BehaviorVisualStateGroupName, Name = BouncingVisualStateName)]
2323
[ContentProperty(Name = nameof(Text))]
24+
25+
#if HAS_UNO
26+
// See: https://github.com/CommunityToolkit/Labs-Windows/pull/275#issuecomment-1331113635
27+
#pragma warning disable CA1001
28+
#endif
2429
public partial class MarqueeText : Control
2530
{
2631
private const string MarqueeContainerPartName = "MarqueeContainer";
@@ -274,3 +279,7 @@ _segment1 is null ||
274279
return true;
275280
}
276281
}
282+
283+
#if HAS_UNO
284+
#pragma warning restore CA1001
285+
#endif

0 commit comments

Comments
 (0)