Skip to content

Conversation

@Avid29
Copy link
Contributor

@Avid29 Avid29 commented Sep 15, 2022

Adds a new MarqueeText control that scrolls text across the screen as a Marquee.

2022-09-14.21-33-07.mp4

@Avid29
Copy link
Contributor Author

Avid29 commented Sep 15, 2022

Sorry for the resubmit. I realized the base branch name was wrong

@niels9001
Copy link
Collaborator

@Avid29 Awesome work :)! FYI, I've added the win: prefix for FontStretch (as it's not supported for Uno) so that the build will hopefully pass!

@Avid29
Copy link
Contributor Author

Avid29 commented Nov 25, 2022

So the current issue appears to be that in Uno (and only in Uno) Timeline is IDisposible, and therefore the MarqueeText control must also be IDisposible since it contains a Storyboard. However in UWP there's no reason to make the control IDisposible, so I'm really not tempted to just add that interface for no reason. For now, I have conditionally attached a IDisposible for Uno, but I'm not too happy with this solution.
image

Any better ideas?

@michael-hawker
Copy link
Member

@Avid29 was there a warning message about this or something somewhere calling this out?

@jeromelaban is this IDisposable message a red herring, are we missing something else instead?

@jeromelaban
Copy link
Collaborator

Some objects are marked as disposable for internal constraints, but it's not something we can change right away as it may be a breaking change (we'll take note to add it as such for our next major). Having to add IDisposable here is likely a result of some analyzer that can be disabled for Uno targets specifically.

@Avid29
Copy link
Contributor Author

Avid29 commented Nov 29, 2022

Hmm. That's frustrating. It fails with IDisposable because it's redundant, and it fails without IDisposible because it's missing...

@Arlodotexe
Copy link
Member

Arlodotexe commented Feb 24, 2023

Having to add IDisposable here is likely a result of some analyzer that can be disabled for Uno targets specifically.

@Avid29 See if you can find which analyzer is doing that. Since IDisposable is implemented as an internal constraint to Uno, we can effectively ignore this and disable the analyzer on uno platforms.

Partially fixed in #377, but since MarqueeText still owns the field, we need to manually suppress the error in this file. There's no way to suppress this problem globally for all files without sacrificing functionality.

@Arlodotexe Arlodotexe requested a review from niels9001 February 24, 2023 21:49
@Avid29
Copy link
Contributor Author

Avid29 commented Mar 2, 2023

@niels9001 I believe this is just waiting on your approval, right @Arlodotexe?

@niels9001
Copy link
Collaborator

@niels9001 I believe this is just waiting on your approval, right @Arlodotexe?

2 minor comments.. otherwise looking great 😁! Awesome control!

@Avid29 Avid29 requested a review from niels9001 March 2, 2023 14:07
@Arlodotexe Arlodotexe merged commit 0a9242d into CommunityToolkit:main Mar 2, 2023
@Avid29 Avid29 deleted the marquee branch March 2, 2023 23:15
Martin1994 pushed a commit to Martin1994/Labs-Windows that referenced this pull request Sep 2, 2023
@Avid29
Copy link
Contributor Author

Avid29 commented Oct 5, 2025

In case anyone finds their way here, the MarqueeText control has been replaced by simply the Marquee control as of this PR: #732

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants