using Avalonia.Controls; using CollabVMClient.ViewModels; namespace CollabVMClient.Views { public partial class CVMNode : UserControl { CVMNodeViewModel VM => ((CVMNodeViewModel)DataContext); public CVMNode() { InitializeComponent(); ConnectButton.Click += ConnectButton_Click; } private void ConnectButton_Click(object? sender, Avalonia.Interactivity.RoutedEventArgs e) { var v = new CollabVMViewer(VM.URL, VM.ID); v.Open(); } } }