请教WPF高手,如何做只有一个角是圆角的按钮?请贴图:xaml,buttontemplate。

日期:2022-04-12 07:50:37 人气:1

请教WPF高手,如何做只有一个角是圆角的按钮?请贴图:xaml,buttontemplate。

用Path画出形状,然后在blend选中path构成控件就可以了。代码如下:
<Style x:Key="OneArcButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value&
    A+
热门评论