using Avalonia.Controls; using CollabVMClient.ViewModels; namespace CollabVMClient.Views { public partial class CollabVMScreenView : Window { public CollabVMScreenView() { InitializeComponent(); } public void RefreshScreen() { screen.Source = ((CollabVMScreenViewModel)DataContext).Framebuffer; screen.InvalidateVisual(); } } }