c# - WPF button with transparent background image -
i want create image button in wpf. far have solution:
<button click="btn_click" name="btndelete" horizontalalignment="stretch" verticalalignment="stretch" grid.row="2" grid.column="2" borderbrush="{x:null}" verticalcontentalignment="top" fontsize="15" fontweight="bold" > <stackpanel> <textblock textalignment="center" name="btndelete_text" text="verwijderen" /> <image stretch="fill" name="btndeleteproductimage" width="90" height="90" source=" {staticresource delete}" /> </stackpanel> </button>
but problem image i'm using has transparent background, shown white on button. how can make transparent?
my buttons shows white background instead of transparent.
the image transparent background should appear transparent default (without additional settings). think problem in image (as mentioned in first comment). looks image saved backgound during transformation in editor. give try different png (i assume png) transparent background , see gives.
Comments
Post a Comment