public ProfileLoadWindow() { InitializeComponent(); Kernel.ProfileWindow = this; SizeToContent = SizeToContent.WidthAndHeight; Content = new ProfileExplorer(); }
private void Window_Closing(object sender, CancelEventArgs e) { if (Content.GetType() == typeof(ProfileDetailView)) { Content = new ProfileExplorer(); e.Cancel = true; } }