Skip to content

Commit 8102102

Browse files
committed
Added conditional IDisposible interface to MarqueeText
1 parent be5debf commit 8102102

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

labs/MarqueeText/src/MarqueeText.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ namespace CommunityToolkit.Labs.WinUI.MarqueeTextRns;
2222
[TemplateVisualState(GroupName = BehaviorVisualStateGroupName, Name = BouncingVisualStateName)]
2323
[ContentProperty(Name = nameof(Text))]
2424
public partial class MarqueeText : Control
25+
#if HAS_UNO
26+
, IDisposable
27+
#endif
2528
{
2629
private const string MarqueeContainerPartName = "MarqueeContainer";
2730
private const string Segment1PartName = "Segment1";
@@ -221,7 +224,7 @@ _segment1 is null ||
221224
_marqueeStoryboard.Completed -= StoryBoard_Completed;
222225
}
223226

224-
_marqueeStoryboard = new Storyboard()
227+
_marqueeStoryboard = new Storyboard
225228
{
226229
Duration = duration,
227230
RepeatBehavior = RepeatBehavior,

0 commit comments

Comments
 (0)