private void aboutButton_Click(object sender, RoutedEventArgs e) { mainGrid.Opacity = 0.2; AboutScreen aboutScreen = new AboutScreen(); aboutScreen.Owner = this; aboutScreen.ShowDialog(); if (DialogResult == true) { mainGrid.Opacity = 1; } else { mainGrid.Opacity = 1; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.aboutScreen = ((WeSplit.AboutScreen)(target)); return; case 2: this.closeUserButton = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\AboutScreen.xaml" this.closeUserButton.Click += new System.Windows.RoutedEventHandler(this.closeUserButton_Click); #line default #line hidden return; } this._contentLoaded = true; }