8,735
社区成员
发帖
与我相关
我的任务
分享
<ContentControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="SilverlightControlLibrary1.GlassBar"
d:DesignWidth="408" d:DesignHeight="48">
<ContentControl.Template>
<ControlTemplate TargetType="ContentControl">
<Grid x:Name="glassBar">
<Rectangle x:Name="barFill" RadiusX="6" RadiusY="6" Fill="#53FFFFFF"/>
<Rectangle x:Name="barStroke" RadiusX="6" RadiusY="6" Stroke="#34FFFFFF">
<Rectangle.Effect>
<DropShadowEffect Direction="0" ShadowDepth="0" BlurRadius="3"/>
</Rectangle.Effect>
</Rectangle>
</Grid>
</ControlTemplate>
</ContentControl.Template>
</ContentControl>