首页 新闻 会员 周边 捐助

silverlight 如何给去掉子窗体的边框

0
悬赏园豆:10 [已关闭问题] 关闭于 2010-10-26 22:21
  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
< >
分享
所有回答(1)
0

有更简单的办法:

<Window
AllowsTransparency="True"
WindowStyle
="None">
</Window>
Ztmdsbt | 园豆:205 (菜鸟二级) | 2011-11-25 20:53
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册