Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have three button on each other in wpf app,and i want that When i walk on the shared space of buttons run the event of below button.
in normal mode its run the event of top button.
tnx.
Posted
Updated 27-Aug-10 21:44pm
v2

You can't do that. You can't make the button that's covered recieve the mouse event. It's just not going to get the click event because it's obscured. You will need to pass the event on.
 
Share this answer
 
tnx Kubajzz.
i used control templates but it do for shape.ellips or reqtangle.but i need to change button face to image.
 
Share this answer
 
How can i create a button that is not rectangular?
For example,be a Flower picture!
 
Share this answer
 
Comments
Kubajzz 28-Aug-10 7:20am    
Reason for my vote of 1
Answers should not be used to ask more questions... Anyway, search for "WPF Styles and Templates", that's what you need.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900