2013-01-19 30 views
1

我有一個SL 5應用程序設置爲用完瀏覽器。
的OOB設置:SL 5瀏覽器不足 - 1pixel白色邊框?

<WindowSettings Title="Thing" Height="497" Width="462" WindowStyle="BorderlessRoundCornersWindow" /> 

混合報告的寬度和高度爲用戶控件作爲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> 

enter image description here 在哪裏白度是來自任何提示?

+0

你有沒有嘗試設置背景&CIE您LayoutRoot電網非默認值(即透明的)? – jv42

回答

1

我想Fllow這STAPS,樂於助人你我要

有新的理念來實現這個

1。點擊Sliverlight項目

2。選擇屬性選項

3。選擇第一個選項卡選項Like Silverlight

4。外的瀏覽器設置點擊開啓選項

enter image description here