我有一个SL 5应用程序设置用完了浏览器 OOB设置:
<WindowSettings Title="Thing" Height="497" Width="462" WindowStyle="BorderlessRoundCornersWindow" />
Blend将UserControl的宽度和高度报告为463,500 当应用程序在浏览器外运行时,左边和上边缘会出现1像素的白线 一些xaml:
<Grid x:Name="LayoutRoot" Height="500" >
<Border BorderThickness="1" CornerRadius="6" Padding="2" Background="#FFF17A35">
<Grid Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,4,6">
<HyperlinkButton
<!--blah blah -->
</HyperlinkButton>
<HyperlinkButton x:Name="hyperlinkCloseButton"
<!--blah blah -->
</HyperlinkButton>
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Center" Margin="0,2,0,0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<!--blah blah -->
</StackPanel>
</StackPanel>
<ScrollViewer Width="400" Grid.Row="4" VerticalAlignment="Center" MaxHeight="76">
<TextBlock x:Name="DbgOutput"
Text="{Binding DbgMsgTxt}"
Width="396" TextWrapping="Wrap"/>
</ScrollViewer>
</Grid>
</Border>
</Grid>
有关白度来自何处的任何提示?
答案 0 :(得分:1)
我认为Fllow这个对你有帮助
有新的想法来实现这个
1。单击Sliverlight Project
2。选择“属性”选项
3。选择第一个选项卡选项Like Silverlight
4。单击“Out-Of-Browser”设置选项