Connection established successfully, but no output is shown on the window #21
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Without trying your code, I could imagine, that your issue is the Binding of the With your code, I bet the Binding doesn't work and therefore the established If you don't want to use MVVM, you could also locate the I'd highly recommend diving deeper into how Avalonia works. |
Beta Was this translation helpful? Give feedback.
Without trying your code, I could imagine, that your issue is the Binding of the
RfbConnection
. To use bindings, you should follow the MVVM pattern with a ViewModel and a DataContext set. Read here more about it: https://docs.avaloniaui.net/docs/data-binding/the-datacontextWith your code, I bet the Binding doesn't work and therefore the established
RfbConnection
is never assigned to theVncView
.If you don't want to use MVVM, you could also locate the
VncView
control directly from your code-behind by giving it a name, and set theConnection
property to yourRfbConnection
instance. See here: https://docs.avaloniaui.net/guides/basics/code-behind#locating-controlsI'd highly recommend divin…