private void OpenTouchCheckBox_OnClick(object sender, RoutedEventArgs e)
        {
            var isChecked = OpenTouchCheckBox.IsChecked ?? false;

            TouchSupportOperationHelper.HasOpenedTouchFix = isChecked;
            if (isChecked)
            {
                TouchSupportOperationHelper.RegisterMessageTouch(this);
            }
            var isTouch = TouchNativeMethods.IsTouchWindow(new WindowInteropHelper(this).Handle, 0x00000002);

            if (TouchSupportOperationHelper.HasDisabledTouch & TouchSupportOperationHelper.HasOpenedTouchFix)
            {
                TouchSupportOperationHelper.RegisterMessageTouch(this);
            }
        }
 private void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     var isTouch = TouchNativeMethods.IsTouchWindow(new WindowInteropHelper(this).Handle, 0x00000002);
 }