Skip to content
Discussion options

You must be logged in to vote

Hello. First of all, this is not related to Material.Avalonia, you should report it to Avalonia repo.

As for problem, you can't change value inside of setter, any changes in setter doesn't appear in control, this is binding specific "feature". You should delay value setter (by calling dispatcher/task delay) or coerce your value other way, like in code behind for example. Or instead of changing value you can validate value. Or the preferred way - use the NumericUpDown instead or regular TextBox for numbers inputting and limiting.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mikhailSokolovskiy
Comment options

@mikhailSokolovskiy
Comment options

@SKProCH
Comment options

@mikhailSokolovskiy
Comment options

Answer selected by SKProCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants