漂亮的删除按钮样式(显⽰出来的是⼀个红⾊的叉)
<Style x:Key="ButtonDelete" TargetType="{x:Type Button}">
<Setter Property="ToolTip" Value="删除" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid x:Name="grid"
Width="35"
Height="25"
Background="Transparent">
<Path Margin="5"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M264,144"
Stretch="Fill"
Stroke="Black">
<Path.Fill>
<LinearGradientBrush StartPoint="1.235,0.757" EndPoint="0.417,-0.421">
<GradientStop Offset="0" Color="Black" />
<GradientStop Offset="1" Color="White" />
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path Margin="5"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M224,184"
Stretch="Fill"
Stroke="Black">
<Path.Fill>
<LinearGradientBrush StartPoint="1.235,0.757" EndPoint="0.417,-0.421">
<GradientStop Offset="0" Color="Black" />
<GradientStop Offset="1" Color="White" />
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path x:Name="path1"
Width="10"
Height="10"
Margin="5"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M225.0616,221.49152 C225.06182,221.49163 284.52632,154.87505 314.0474,155.72765 314.0474,155.72765 232.45547,247.64286 232.45547,247.64286 223.21292,258.03906 206.39212,266.66986 206.33998,259.15356 206.18145,236.2969 225.06137,221.4914 225.0616,221.
49152 z"
Stretch="Fill">
<Path.Fill>
<LinearGradientBrush MappingMode="RelativeToBoundingBox" StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0.991" Color="White" />
vertical怎么读<GradientStop Offset="0.978" Color="Brown" />
</LinearGradientBrush>
</Path.Fill>
</Path>
<Path x:Name="path2"
Width="10"
Height="10"
Margin="5"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Data="M287.98419,227.19702 C303.37484,251.26958 307.12677,273.98902
304.43574,272.18989 L291.25169,250.54466 C277.25079,231.44142 232.86561,190.06773 213.9081,174.02543 205.90815,158.02543 208.69505,150.19498 225.74176,159.28198 239.86099,166.80844 252.9268,182.20368 265.64616,197.93196"
RenderTransformOrigin="0.608,0.503"
Stretch="Fill">
<Path.Fill>
<LinearGradientBrush MappingMode="RelativeToBoundingBox" StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="1" Color="White" />
<GradientStop Offset="0.017" Color="Brown" />
<GradientStop Offset="0.996" Color="Brown" />
</LinearGradientBrush>
</Path.Fill>
</Path>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论