Example #1
0
 /// <summary>
 /// Raises the <see cref="E:System.Windows.Window.Closing"/> event.
 /// </summary>
 /// <param name="e">A <see cref="T:System.ComponentModel.CancelEventArgs"/> that contains the event data.</param>
 protected override void OnClosing(CancelEventArgs e)
 {
     if (inputProvider != null)
     {
         inputProvider.Dispose();
         inputProvider = null;
     }
     base.OnClosing(e);
 }
Example #2
0
 /// <summary>
 /// Raises the <see cref="E:System.Windows.Window.SourceInitialized"/> event.
 /// </summary>
 /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
 protected override void OnSourceInitialized(EventArgs e)
 {
     inputProvider = new MultitouchInputProvider(PresentationSource.FromVisual(this));
     base.OnSourceInitialized(e);
 }