New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: NumberBox (dev tracking) #1505
Comments
@teaP I am not sure if raising a issue is the best way to give feedback on something that is still under construction. I am using the latest preview and found following.
|
Thank you, @harvinders, for bringing this to my attention! Header was defined as a string for some reason, it's an object now like all the others. I've also added HeaderTemplate. The fixes will be in my next checkin, hopefully early next week. |
Could ValueChanged only be sent when the user changed the value and not when programmatically setting it? Right now, I have to exclude that case manually cc @SavoySchuler @MikeHillberg Other feedback from the latest pre-release package:
Feedback taken from my previous comment:
|
Hi @adrientetar, thanks for your feedback! In the prerelease control, the value should be committed on loss of focus -- is that not working for you? I also couldn't repro the disabled issue. I've added the long press arrow key feature to my todo list. My next update will also treat NaN as an empty value. I'll start a discussion about Shift+up/down and get back to you on that one. |
@teaP, actually yeah, the value is committed on loss of focus. My issue is that if I click on my app canvas it will deselect the items before the NumberBox has a chance to commit, because I guess focus lost event isn't sent out immediately but needs wait for the event loop to return. Video. The code change is here, also you can see I need a _isEditing boolean value to filter ValueChanged when it comes from the user, it would be nice if the control can do that internally maybe (or add a Reason property to the arguments perhaps to say if it's User change or Programmatic). For the disabled issue, I use a converter on the value to set IsEnabled: |
@adrientetar, hmm, would it help if you had a way to force validation of the text before you deselected the item in your canvas? |
@teaP, not really because that would introduce too much coupling between parts of my app. I think I just need to do something like call CoreDispatcher.ProcessEvents so that the focus out event is processed immediately and before I deselect. So I don't think anything is required on the control, that's just something I thought I would note. |
@teaP, it seems the NumberBox introduces 2 elements in the visual tree that receive focus Here I see NumberBox get focus when tabbing and then InputBox as well. Shouldn't only NumberBox be in the tab focus order? Also:
|
Thanks for letting us know @adrientetar, do you mind opening this as a new issue just so we don't lose it? |
That is standard TextBox behavior and not something NumberBox is doing. I think it might be intentional. You might have seen it because you were trying the "hyper scrolling" feature which we ended up cutting from the 2.3 release.
I tried this in the test app and I don't see this. Only one thing is getting visited by Tab when I tab through the page. Can you share a repro app?
I see this, it's because TextBox eats that first Up to move the caret. We can try to get in the way and handle it, so go ahead and file an issue for this. |
Assuming the default CornerRadius is set properly, here is the current styling in Light and Dark themes, as well as with different backgrounds The compact flyout is visibly lost in the Dark Theme - using Acrylic for this flyout would be one way to solve it, as well as adding borders to these flyout buttons. |
V1 finished, additional comments should go to #1736, |
Tracking for #483
The text was updated successfully, but these errors were encountered: