private void buttonOk_Click(object sender, RoutedEventArgs e) { if (this.Apply != null) { this.Apply(this, EventArgs.Empty); } }