public void Show(TransientProfileStatusesViewModel viewModel) { if (viewModel == null) { throw new ArgumentNullException(nameof(viewModel)); } var view = new ProfileStatusesView(); view.DataContext = viewModel; var profileStatusesWindow = new GenericElementHostWindow(); profileStatusesWindow.Text = "Synchronization Status"; profileStatusesWindow.Icon = Resources.ApplicationIcon; profileStatusesWindow.ShowIcon = true; profileStatusesWindow.BackColor = SystemColors.Window; profileStatusesWindow.Child = view; profileStatusesWindow.Size = new Size(400, 300); profileStatusesWindow.FormClosing += (sender, e) => { viewModel.OnViewClosing(); }; viewModel.RequestingBringToFront += (sender, e) => { profileStatusesWindow.BringToFront(); }; profileStatusesWindow.Show(); }
public void Show(TransientProfileStatusesViewModel viewModel) { }