title: Is this a WPF Touch issue?
body: <p>I am having a label box and some controls in the WPF window. I am throwing a message box in the WPF Checkbox set property. </p>
  
  <p>When we touch on the label message box is thrown, but even if we tough the other areas also, message box is thrown.</p>
  
  <p><strong>This issue is occurring only in the touch monitors</strong></p>
  
  <p>Please check the below code: [For simplicity, I have refactored for easy understanding]</p>
  
  <p><strong>XAML</strong></p>
  
  <pre><code>&lt;CheckBox x:Name="chkbox"   Style="{StaticResource CheckBoxStyle1}" Grid.Row="0"  HorizontalContentAlignment="Left"   Background="Red"
  Content="SampleCheckBox" 
  IsChecked="{Binding Path=CheckBoxValue}" Margin="18,4,0,0"&gt;&lt;/CheckBox&gt;
  </code></pre>
  
  <p><strong>XAML Style</strong></p>
  
  <pre><code>&lt;Style x:Key="CheckBoxStyle1" TargetType="{x:Type CheckBox}"&gt;
  &lt;Setter Property="Foreground" Value="Black"/&gt;
  &lt;Setter Property="Background" Value="{DynamicResource {x:Static  SystemColors.WindowBrushKey}}"/&gt;
  &lt;Setter Property="BorderBrush" Value="BlanchedAlmond"/&gt;
  &lt;Setter Property="BorderThickness" Value="2"/&gt;
  &lt;Setter Property="Padding" Value="2,0,0,0"/&gt;
  &lt;Setter Property="ClickMode" Value="Press"/&gt;
  &lt;Setter Property="FocusVisualStyle" Value="{x:Null}" /&gt;
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code>public class GridViewModel : ViewModelBase1
  {
      public bool dummyFlag = true;
  
      public bool testflag = false;
  
      public System.Windows.UIElement view;
  
      public bool CheckBoxValue
      {
          get { return testflag; }
          set
          {
              System.Windows.MessageBox.Show("test", "Title", MessageBoxButton.OK, MessageBoxImage.Information);
              //OnPropertyChanged("CheckBoxValue");
          }
      }
  }
  </code></pre>
  
  <p><strong>Possible Cause for the issue</strong></p>
  
  <ol>
  <li><p>Throwing a message box in the set property. If I remove the message box, debugging flow doesn't go to the set property. </p></li>
  <li><p>Also If I configure the below setter property to Release, issue will not occur. Setter Property="ClickMode" Value="<strong>Release</strong>"</p></li>
  </ol>
  
  <p>however it is not the real cause of this issue.</p>
  
  <p>Any help would be great. </p>