我有一个设置为用完浏览器的 SL 5 应用程序。
OOB 设置:
<WindowSettings Title="Thing" Height="497" Width="462" WindowStyle="BorderlessRoundCornersWindow" />
Blend 将 UserControl 的宽度和高度报告为 463, 500。
当应用程序在浏览器之外运行时,它的左侧和顶部边缘似乎有一条 1 像素的白色线。
一些xml:
<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>
关于白度来自哪里的任何提示?