Example #1
0
 /// <summary>
 /// Fires when the property value changes
 /// </summary>
 /// <param name="d">Reference to the object the value changed on</param>
 /// <param name="e">Event args</param>
 private static void OnPointingDeviceInputModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     _mostRecentPointingDeviceInputMode = (PointingDeviceInputMode)e.NewValue;
 }
Example #2
0
 /// <summary>
 /// Indicates the current input mode
 /// </summary>
 /// <remarks>This property should never be set manually. It is auto-updated if UpdatePointingDeviceInputMode is set to true.</remarks>
 public static void SetPointingDeviceInputMode(DependencyObject d, PointingDeviceInputMode value)
 {
     d.SetValue(PointingDeviceInputModeProperty, value);
 }