I need to create a rounded corner glossy button in WPF. Can anyone please explain me what steps are needed?
相关问题
- Generic Generics in Managed C++
- How to know full paths to DLL's from .csproj f
- VNC control for WPF application
- Importing NuGet references through a local project
- How to Debug/Register a Permanent WMI Event Which
相关文章
- .net中MessageBox.Show使用问题
- IdentityServer 报错:"idp claim is missing"
- 在 IdentityServer 中如何给 id token 添加更多信息
- WPF:如何在Trigger里修改Orientation?
- IdentityServer 的 Selector 在哪个 nuget 包
- 使用 IdentityServer 的项目遭遇错误:"IDX20803: Unable to obt
- ASP.NET Core ConfigureServices 中从 appsettings.json
- WPF aforge 怎么做一个 圆形的播放器
You can use attached properties for setting button border radius (also the same will work for textboxes).
Create class for attached property
Then you can use attached property syntax for multiple buttons without style duplicates:
You can try this...........
As alternative, you can code something like this:
The "Button" will look something like this:
You could set any other content instead of the image.
This is working fine for me.