wpf - Border IsMouseOver Trigger not working -


i have problem trigger , property ismouseover in following snippet

<border name="part_logo" background="{dynamicresource accent}" width="36" height="36" horizontalalignment="right" verticalalignment="top" margin="0,0,76,0">     <border.inputbindings>         <mousebinding command="presentation:commands.logoclickcommand" gesture="leftclick" />     </border.inputbindings>     <border.style>         <style targettype="border">             <style.triggers>                 <trigger property="ismouseover" value="true">                     <setter property="bitmapeffect">                         <setter.value>                             <blurbitmapeffect radius="3" kerneltype="gaussian"/>                         </setter.value>                     </setter>                 </trigger>             </style.triggers>         </style>     </border.style>     <image source="{templatebinding logo}" stretch="uniformtofill">         <image.style>             <style targettype="image">                 <style.triggers>                     <trigger property="ismouseover" value="true">                         <setter property="bitmapeffect">                             <setter.value>                                 <blurbitmapeffect radius="3" kerneltype="gaussian"/>                             </setter.value>                         </setter>                     </trigger>                 </style.triggers>             </style>         </image.style>         <image.inputbindings>             <mousebinding command="presentation:commands.logoclickcommand" gesture="leftclick" />         </image.inputbindings>     </image> </border> 

it works on bottom half of border here 2 images show behavior:

this works this doesn't work

it work if remove border.inputbindings , image.inputbindings

please remove following code, work.

<border.inputbindings>         <mousebinding command="presentation:commands.logoclickcommand" gesture="leftclick" /> </border.inputbindings>  <image.inputbindings>             <mousebinding command="presentation:commands.logoclickcommand" gesture="leftclick" /> </image.inputbindings> 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -