Fix UserControl Interaction
This commit is contained in:
1 parent
c2b265afd1
commit
782965ce49
3 files changed
+9
-9
No files matched your search
@@ -12,14 +12,16 @@ public partial class MainWindowViewModel : ViewModelBase, IActivatableViewModel
|
||||
{
|
||||
public ViewModelActivator Activator { get; } = new ViewModelActivator();
|
||||
|
||||
[ObservableAsProperty]
|
||||
private string _dbPath = "";
|
||||
[Reactive]
|
||||
private string _dbPath;
|
||||
|
||||
[Reactive]
|
||||
private BuColViewModel? _buColViewModel = new();
|
||||
|
||||
public MainWindowViewModel()
|
||||
{
|
||||
using var db = Locator.Current.GetService<StarsDatabase>()!;
|
||||
_dbPathHelper = Observable.Return(Path.GetFullPath(db.DbPath))
|
||||
.ToProperty(this, x => x.DbPath);
|
||||
DbPath = Path.GetFullPath(db.DbPath);
|
||||
|
||||
this.WhenActivated((CompositeDisposable disposables) =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user