I have a coloured circle in a .png, the rest is transparent. I am able to place that image on a button but the rest of the button's style is visible on the transparent are of the image. How can I hide it, in normal, mouse over and pressed mode?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- VNC control for WPF application
- CV2 Image Error: error: (-215:Assertion failed) !s
- WPF Binding from System.Windows.SystemParameters.P
It sounds like you are currently using the existing button's Template and just adding an Image to it. What you need to do is modify the button's
<Template>
itself so it uses your image instead of the default template.If you do a google search on something like "WPF Template" or "WPF Round Button" you'll probably come up with some good examples.
I ended up using the most simple solution for me (probably not the most elegant).
Try this style
And the use it as follows