Skip to content

Connection established successfully, but no output is shown on the window #21

Discussion options

You must be logged in to vote

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-datacontext

With your code, I bet the Binding doesn't work and therefore the established RfbConnection is never assigned to the VncView.

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 the Connection property to your RfbConnection instance. See here: https://docs.avaloniaui.net/guides/basics/code-behind#locating-controls

I'd highly recommend divin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcusWichelmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #20 on May 23, 2023 11:35.