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:
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
Post a Comment