silverlight 如何给去掉子窗体的边框,就是把最外边那个白色的去掉。或透明的也可以,怎么实现?
问题补充:
没有人回答,但终于在我的不谢的上网找资料以及实践的工程中解决了,现在将解决方法公布如下,在app.xaml加入下面的样式:
<Application.Resources>
<!-- Resources scoped at the Application level should be defined here. -->
<Style x:Key="ChildWindowStyleBord" TargetType="sdk:ChildWindow">
<Setter Property="IsTabStop" Value="false"/>
<Setter Property="TabNavigation" Value="Cycle"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="VerticalContentAlignment" Value="Stretch"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFA3AEB9" Offset="0"/>
<GradientStop Color="#FF8399A9" Offset="0.375"/>
<GradientStop Color="#FF718597" Offset="0.375"/>
<GradientStop Color="#FF617584" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="OverlayBrush" Value="#7F000000"/>
<Setter Property="OverlayOpacity" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="sdk:ChildWindow"&
风语/仝
|
初学一级
|
园豆:
150
提问于:2010-10-18 00:04