コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <inheritdoc/>
        protected override void OnStartup()
        {
            AddDataTemplates();
            AddStatusBarItems();

            // Set default status.
            var status = new StatusViewModel {
                Message = "Ready"
            };

            Show(status);
        }