Skip to content

Problem with Compiled bindings used with C# #26145

Answered by simonrozsival
maonaoda asked this question in Q&A
Discussion options

You must be logged in to vote

That's interesting. As a workaround, setting BindingMode.OneWay should make the problem go away:

cameraView.SetBinding(CameraView.OnDetectedCommandProperty, static (QRScanPageViewModel vm) => vm.ScanResultCommand, mode: BindingMode.OneWay);

I would be interested in seeing the definition of OnDetectedCommandProperty (and its default BindingMode). Is the CameraView a class you own or does it come from some third-party library?

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@simonrozsival
Comment options

@simonrozsival
Comment options

Comment options

You must be logged in to vote
8 replies
@maonaoda
Comment options

@simonrozsival
Comment options

Answer selected by maonaoda
@maonaoda
Comment options

@maonaoda
Comment options

@maonaoda
Comment options

@simonrozsival
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants