运行时出现的白色边框

时间:2016-01-21 18:33:40

标签: wpf xaml

我在wpf应用程序中有一个窗口,我有WindowStyle到"无"允许透明度为"错误"。因为我不能自由地调整窗口大小而不会使它失败#34; False"。这是问题所在。红色标记传说问题!

Red mark legends the Problem!

这是我的XAML

<Window x:Class="Orbit__Word.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="524" WindowStyle="None"
        AllowsTransparency="False" Background="#FF976262">

    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="Orbit_Dat/Metro-Default.jpg" 
                        Stretch="UniformToFill"/>
        </Grid.Background>

        <TextBlock HorizontalAlignment="Left" Margin="10,7,0,0" TextWrapping="Wrap" 
                   Text="Orbit® Word" VerticalAlignment="Top" Foreground="White" 
                   FontFamily="Destroy X" Height="28" Width="107" FontSize="24"/>
        <Grid/>

    </Grid>
</Window>    

为什么会出现此边框,我该怎样阻止这种情况?请帮助!

0 个答案:

没有答案