c# - Why this button has a small functionality area? -


i have behaving button in wpf application. has image on it. it's working fine, user needs press in middle functionality.

so image covering whole "button" technically border. yet users have tiny space click. edges maybe 20 pixels away each edge not functional. what reason user has small functional space?

<border x:name="previewbutton" margin="0,10" height="89" padding="0" mousedown="previewbutton_mousedown" mouseup="previewbutton_mouseup" borderbrush="#ff535151" borderthickness="1" mouseleave="previewbutton_mouseleave" touchdown="previewbutton_touchdown" touchup="previewbutton_touchup" touchleave="previewbutton_touchleave" >     <image width="50" source="/ez3d;component/resources/old/eye.png" margin="4.2,0.2,3.4,0.2" /> </border> 

border:

enter image description here

image on border:

enter image description here

set background of border transparent make hit-test visible:

<border background="transparent" ...> 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -