title: How to use click event in MaterialDesign:PackIcon in WPF?
body: <p>I used <code>materialDesign:PackIkon</code> in my WPF application.</p>
  
  <p>this is my code at xaml for the PackIcon</p>
  
  <pre><code>&lt;ListViewItem Background="White" Height="55" &gt;
           &lt;StackPanel Orientation="Horizontal"&gt;
               &lt;materialDesign:PackIcon Kind="CardMembership" MouseDown="PackIconMember_MouseDown" Height="40" Width="25" Foreground="#FF0959A8" /&gt;
               &lt;Button  x:Name="btnMember" Click="btnMember_Click" Content="Member" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" FontSize="10" /&gt;
             &lt;/StackPanel&gt;
    &lt;/ListViewItem&gt;
  </code></pre>
  
  <p>I have a few <code>PackIcon</code> in my xaml. each of them in different listview.</p>
  
  <p>what I want is when user click on the <code>Icon</code> it will process the event in <code>PackIconMember_MouseDown</code></p>
  
  <p>There is no error in my code above, the problem is sometimes the code work. I means when user click on the icon it will process the event. but sometimes user need to click multiple time for it to process the event. I don't know why this happen.</p>
  
  <p>Any idea on what I should do with this ? or any suggestion to replace the <code>MouseDown</code> event. </p>
  
  <p><a href="https://i.stack.imgur.com/BzGZQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BzGZQ.png" alt="its only work when I click on icon with the blue color"></a></p>
  
  <p>its only work when I click on icon with the blue color.
  it does not working when I click on the white space that I show with the arrow. how can I do to make it work when user click anywhere on the icon ? is it possible ?</p>
  
  <p>if I do inside button, the packIcon does not appear</p>
  
  <pre><code> &lt;Button Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Black" Height="20" Width="25" Margin="10"&gt;
      &lt;materialDesign:PackIcon MouseDown="PackIconMember_MouseDown" TouchDown="PackIconMember_MouseDown" Kind="CardMembership" /&gt;
   &lt;/Button&gt;
  </code></pre>