Skip to content

Commit c8292f6

Browse files
committed
Fixed bug where swapping tabs in TabView caused the control to prematurely detach events
1 parent 59ac68e commit c8292f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/MarqueeText/src/MarqueeText.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ protected override void OnApplyTemplate()
7272
_marqueeTransform = (TranslateTransform)GetTemplateChild(MarqueeTransformPartName);
7373

7474
_marqueeContainer.SizeChanged += Container_SizeChanged;
75-
Unloaded += MarqueeText_Unloaded;
75+
76+
// Swapping tabs in TabView caused errors where the control would unload and never reattach events.
77+
// Hotfix: Don't detach events. This should be fine because the GC will handle it.
78+
// However, more research is required.
79+
//Unloaded += MarqueeText_Unloaded;
7680

7781
VisualStateManager.GoToState(this, GetVisualStateName(Direction), false);
7882
VisualStateManager.GoToState(this, GetVisualStateName(Behavior), false);

0 commit comments

Comments
 (0)