c# - Why MouseLeftButtonUp Event not Fired in this case -


why mouseleftbuttonup event stackpanel not fired?? mouseleftbuttondown event happens not buttonup.

<stackpanel x:name="close_btn" grid.row="1" grid.column="0" orientation="vertical" height="41" horizontalalignment="left"  width="19" verticalalignment="top" >     <button height="19" width="19"  click="button_click">         <button.template>             <controltemplate targettype="button">                 <stackpanel>                     <image name="image1" source="..\..\images\ixs.png" stretch="fill" height="19" width="19" visibility="collapsed" />                     <image name="image2" source="..\..\images\ixs-hover.png" stretch="fill" height="19" width="19" visibility="visible" />                 </stackpanel>                 <controltemplate.triggers>                     <trigger property="ismouseover"           value="true">                         <setter targetname="image1"           property="visibility"           value="visible" />                         <setter targetname="image2"           property="visibility"           value="collapsed" />                     </trigger>                 </controltemplate.triggers>             </controltemplate>         </button.template>     </button>     <stackpanel previewmouseleftbuttondown="image3_mouseleftbuttondown" previewmouseleftbuttonup="image3_mouseleftbuttonup">         <image   name="image3" source="..\..\images\movit.png" stretch="fill" height="22" width="19" />     </stackpanel>  </stackpanel> 


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -