UraniumUI icon indicating copy to clipboard operation
UraniumUI copied to clipboard

[Enhancement] Add More Event Handlers to EditorField

Open BinaryAssault opened this issue 1 year ago • 2 comments

Can the EditorField have at the very least the TextChanged event added to it?

Would be even better if ReturnCommand/ReturnCommandParameter could be included (not sure of feasibility)

Additionally would be nice to have IsSpellCheckEnabled added; maybe it is inherently there, but I have not looked

BinaryAssault avatar Jul 28 '23 02:07 BinaryAssault

Added PR #432 ReturnCommand/ReturnCommandParameter requires handlers and deeper implementation so I left them out for the moment.

Using TextChanged with the EventToCommand behavior from the community toolkit, you can at least see if the new text ends in a '\n'. If so, the enter key was pressed and you can work on that. Not ideal - but functional.

BinaryAssault avatar Jul 28 '23 19:07 BinaryAssault

I plan to release v2.6 with .NET 8, so I want to release PR #432, I'll take your commits with cherry-pick to rel-2.5 branch and release another patch version for v2.5

enisn avatar Aug 01 '23 09:08 enisn