let mtvCapView = Rendering.MTViewerCaptureViewProvider(subRead)
let image = Image()
let imageBinding = Data.Binding("ImageElement")
imageBinding.Source <- mtvCapView
image.SetBinding(Image.SourceProperty, imageBinding)
....
Grid.SetColumn(image, 1)
grid.Children.Add(image)
The MTViewerCaptureViewProvider class exposes an property ImageElement which is set and should work here. If I:
Grid.SetColumn(mtvCapView.ImageElement, 1)
grid.Children.Add(mtvCapView.ImageElement)
This works. Why does the other not?