I found that The background of the WPF button can be transparent, but the Window Form button can't. I have tried many methods which I found but it doesn't work. However, is it possible to make a WPF button in a Windows Form?
It is possible to use WPF-Elements in Windows-Forms-Applications. Add a reference to WindowsFormsIntegration.dll
in your project, which enables you to use ElementHost. Then you can create a WPFControlLibrary containing your transparent button and use in the ElementHost in the Form.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.