public void Register(PortableAppWindow portableWindow) { portableWindow.PropertyChanged += PortableWindow_PropertyChanged; if (portableWindow.ViewModel != null) { _presenter.ViewModel = portableWindow.ViewModel; } }
public async Task UnregisterWindowAsync(PortableAppWindow window) { // Wait till InitializeAsync finishes await InitializeTask; window.Unregister(); Windows.Remove(window); }
public void Register(PortableAppWindow portableWindow) { _presenter.SetBinding(GenericViewModelPresenter.ViewModelProperty, new Binding() { Path = new PropertyPath(nameof(portableWindow.ViewModel)), Source = portableWindow }); portableWindow.PropertyChanged += PortableWindow_PropertyChanged; }
public async Task RegisterWindowAsync(PortableAppWindow window, INativeAppWindow nativeWindow) { // Wait till InitializeAsync finishes await InitializeTask; window.Register(nativeWindow); // Add the window Windows.Add(window); }
private void UpdateBackButtonVisibility(PortableAppWindow window) { switch (window.BackButtonVisibility) { case BareMvvm.Core.ViewModels.RequestedBackButtonVisibility.Collapsed: case BareMvvm.Core.ViewModels.RequestedBackButtonVisibility.Inherit: _navigationManager.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed; break; case BareMvvm.Core.ViewModels.RequestedBackButtonVisibility.Visible: _navigationManager.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; break; } }
public void Register(PortableAppWindow portableWindow) { portableWindow.PropertyChanged += PortableWindow_PropertyChanged; }
public void Register(PortableAppWindow portableWindow) { }