8,735
社区成员
发帖
与我相关
我的任务
分享
<Style x:Key="CircleWindowStyle" TargetType="{x:Type Window}">
<Setter Property="WindowState" Value="Normal"/>
<Setter Property="WindowStyle" Value="None"/>
<Setter Property="Background" Value="{x:Null}"/>
<Setter Property="AllowsTransparency" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Window}">
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center"
Width="100" Height="100"
Fill="AliceBlue" Stroke="Black" StrokeThickness="2">
</Ellipse>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
把这个Style用到你的Window上