Closed TeaDrivenDev closed 9 years ago
@TeaDrivenDev Do you have a full source code somewhere on GitHub?
Not right now; I'll try and push something tomorrow.
Couple suggestions:
First, you don't need coerce
in binding because types aligned (string - string). coerce
is a way to say 'I want to use default WPF type conversions'.
Second, to pin-point an issue set-up binding in typeless way e.g.
root.PinTextBox.SetBinding(TextBox.TextProperty, "Pin") |< ignore
And see if it works.
@dmitry-a-morozov Yes, that works.
Hmm, it means there is a problem in typed data-binding module. I will be much interested in repo, if you can.
I put it here: https://github.com/TeaDrivenDev/TwitterDemo
Fixed in the latest version 0.7.0 Thanks for the bug report and test case repository ! Funny enough the fix has been sitting in source control for more than a month I just haven't manage to push update.
Works fine now, thanks! :-)
I have started a small application taking the general structure from the Calculator example (which I ported to FsXaml first). However, I am already stuck very early on.
This is the complete F# code:
I am at this time just trying to get anything to work; however, when I run this, a
TypeInitializationException
occurs in theBinding.OfExpression
call, telling me that the type initializer forPatterns
has thrown an error, and I don't know what to make of it.PinTextBox
inOAuth.xaml
is a simple text box,SubmitPin
is a button.Any ideas what I'm doing wrong?