-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
TwoBinding updating issue #74
Comments
As far as I know, WPF doesn't update the value of a control (or at least a This is supported by the logs: Even after In other words: It's just the way WPF works. |
thanx... Good explanation! |
I don't know of any simple workarounds. You could try playing around with storing the input value directly in the model and setting the XAML binding trigger to |
following your suggestions i've tryed to modify the ViewModel Module like this:
pratically, instead of trigger the propertyChanged directly, i've send it to dispatcher. |
Interesting! I'm also unsure what the side-effects of that change is, though it would change how people are used to WPF |
This has been fixed in 2.0.0-beta-10. |
First of all... Thanx for this very nice library!
I have this issue:
I've cloned SubBindings sample and modified with:
-- Program.fs
added to type Msg
| SetCounter of CounterId * int
added to update function
| SetCounter (cid,value) -> { m with AllCounters = m.AllCounters |> mapCounter cid (Counter.setCounter value) }
added to counterBindings
-- MainWindows.xml
<TextBox Text="{Binding CounterValue}" Width="100" Margin="0,5,10,5" />
Works all but this:
if i insert a number (eg 20) in the textbox and change focus:
3. the texbox remain 20 (ISSUE)
now if i hit the "+" button, correctly:
Why i've th bold issue?
Thanx
PS sorry for my poor english, i'm italian
(i attach the modified files)
Files.zip
The text was updated successfully, but these errors were encountered: