如何消除UWP中viewbox的扭曲间距?

如何消除UWP中viewbox的扭曲间距?,uwp,uwp-xaml,Uwp,Uwp Xaml,以下是XAML: <Page x:Class="App1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:App1" xmlns:d="http://schemas.microsoft.com/expr

以下是XAML:

<Page
    x:Class="App1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="Black">

    <Grid>
        <Viewbox Margin="20">
            <Grid Background="Black">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                    <ColumnDefinition Width="1000"></ColumnDefinition>
                    <ColumnDefinition Width="50"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Polygon Fill="White" Points="0,50,50,0,50,50"/>
                <Rectangle Fill="White" Grid.Column="1"></Rectangle>
            </Grid>
        </Viewbox>
    </Grid>
</Page>
当应用程序运行时,多边形和矩形之间出现奇怪的1px间距,如下所示:

更重要的是,我发现如果移除viewbox,问题就解决了。
这有什么问题,我怎样才能用它去除奇怪的1px间距。谢谢。

我相信这是由于我们不理解的一些计算机视觉理论造成的

但是一个快速的解决方法是在矩形中添加一个负边距,让它变大一点以隐藏1px线

<Rectangle Fill="White" Grid.Column="1" Margin="-1"></Rectangle>

哦,在我们知道如何解决之前,这是一个好主意。我们将边距改为-1,0,0,0,这样会更好。谢谢。我想我应该向微软报告,也许只有微软才能解决。