- <Window x:Class="Waiter"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Waiter" Height="40" Width="300" WindowStyle="None"
- AllowsTransparency="True"
- Background="Transparent" OpacityMask="White" ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen" >
- <Grid AllowDrop="True" Width="300" Height="40" Background="Transparent" >
- <Border BorderThickness="1" BorderBrush="#FFB6E8C3" CornerRadius="10,10,10,10">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FFC3F3D0"></GradientStop>
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- </Grid>
- </Window>
- //该片段来自于http://www.codesnippet.cn/detail/190220148745.html
来源: http://www.codesnippet.cn/detail/190220148745.html