Fixes #2354. View.Redraw doesn't clear itself and PositionCursor doesn't ensure focus when a prior view was disabled.#2355
Conversation
|
Do we have a real user that has requested this? In my opinion we should be very leery of adding new features (methods/properties) to v1 that are not critically needed. Everything we add to v1 now becomes more legacy we need to support/port in v2. I would much rather get focused on v2 for things like this. However, if there is a real customer (developer external to this project) who is requesting this, and can't get their app to work without it, then I'll change my mind. |
We may not need the
The
I agree. The only thing I can remove here is the
I agree. Do you want I do remove the
I agree with the cases of adding new features, but not for bug fixes before the v2 is published.
No there is no customer, that was only me that I detected some bugs and when I was fixing I thinking in a view to force the view to always using the normal color whether it's focused or not, if the |
…property to prevent unnecessary derived class.
6ff0049 to
3ccc782
Compare
I know it seems like more work (and I know I'm guilty of not always doing this right myself), but these should really each be documented as individual Issues and submitted as separate PRs. For v1
Yes. |
Yes you are right. Sometimes I'm so lazy, sorry :-)
Yes I'm starting working more in the v2 and I propose that you move the View2 code to the View, so we can only be focusing in the v2. But I think that all the v1 bugs that are transversal to the v2 must be merge in the v1 and all the v2 PR must be merged with the develop branch before they are submitted, otherwise there will be a bunch of merge conflicts to resolve.
|
No need to apologize. We're all in this for fun (but I think it's fun to sometimes pretend this all matters ;-).
I'm going to do this asap. As part of it, my plan is to remove a bunch of existing functionality that becomes redundant. In some cases, I plan on focusing on v2 and then back-porting to v1. I think that either way we'll have some merge issues to deal with. Not fun. |
Fixes #2354 - A simple view now can be used as container with normal and focus color if
IgnoreHasFocusPropertyOnRedrawis false (default) or only with the normal color if it's true. Now if it's possible to focus a enable view this is ensured, otherwise the cursor will be invisible.Pull Request checklist:
CTRL-K-Dto automatically reformat your files before committing.dotnet testbefore commit///style comments)