using Avalonia.Controls; using Avalonia.ReactiveUI; using System.Diagnostics; using System; using StarsAssistant.ViewModels; using Avalonia.Markup.Xaml; using ReactiveUI; using System.Reactive.Disposables; namespace StarsAssistant.Views; public partial class MainWindow : ReactiveWindow { public MainWindow() { this.WhenActivated(disposables => { this.OneWayBind(ViewModel, vm => vm.DbPath, v => v.DbPath.Text) .DisposeWith(disposables); }); InitializeComponent(); } }