Пример #1
0
        /// <summary>
        /// Manually closes the window.
        /// </summary>
        public void Close()
        {
            var args = new CancelRoutedEventArgs(ClosingEvent, this)
            {
                Cancel = false
            };

            this.OnClosing(args);
            if (!args.Cancel)
            {
                this.window.Close();
                this.OnClosed(new RadRoutedEventArgs(ClosedEvent));
            }
        }
Пример #2
0
 /// <summary>
 /// Raises the <see cref="Closing"/> event.
 /// </summary>
 /// <param name="args">The <see cref="Telerik.Windows.Controls.CancelRoutedEventArgs"/> instance containing the event data.</param>
 protected virtual void OnClosing(CancelRoutedEventArgs args)
 {
     this.RaiseEvent(args);
 }