/// <inheritdoc/> public void Show(StatusViewModel viewModel) { if (!WindowsHelper.CheckAccess()) { throw new InvalidOperationException("Cross-thread operation not valid: The method needs to be invoked on the UI thread."); } _statusConductor.ActivateItem(viewModel); }
/// <inheritdoc/> protected override void OnStartup() { AddDataTemplates(); AddStatusBarItems(); // Set default status. var status = new StatusViewModel { Message = "Ready" }; Show(status); }