Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wpf 视图框和模糊效果问题?_Wpf_Xaml - Fatal编程技术网

Wpf 视图框和模糊效果问题?

Wpf 视图框和模糊效果问题?,wpf,xaml,Wpf,Xaml,我不明白这是一个错误,我造成了一些错误的设置或只是一个问题的WPF。 我试图查看一个GroupBox的所有内容,并且我使用Viewbox作为某些不带Viewbox的标签,在特定分辨率下是不可见的。 一切正常,但渲染似乎有问题。 如图所示: 通过在viewBox中设置此选项: <Viewbox Stretch = "Fill" Grid.Column = "0" Grid.Row = "0" StretchDirection = "Both"> 我可以看到所有的内容,但正如你所

我不明白这是一个错误,我造成了一些错误的设置或只是一个问题的WPF。 我试图查看一个GroupBox的所有内容,并且我使用Viewbox作为某些不带Viewbox的标签,在特定分辨率下是不可见的。 一切正常,但渲染似乎有问题。 如图所示:

通过在viewBox中设置此选项:

<Viewbox Stretch = "Fill" Grid.Column = "0" Grid.Row = "0" StretchDirection = "Both">

我可以看到所有的内容,但正如你所看到的标签是模糊的,似乎传播如此强迫,我不喜欢。 在另一个groupbox中,我尝试设置:

 <Viewbox Stretch="Uniform" Grid.Column="1" Grid.Row="0" StretchDirection="Both">

在渲染级别,我已经获得了更好的效果:

问题是,它们在左右两边都保留了白色的条纹(如果明显地强加了软件达到的最小分辨率),这对我来说并不好,因为我没有使用所有的UI应用程序。 对于那些希望快速查看完整XAML的人:

<Viewbox Stretch="Uniform" Grid.Column="1" Grid.Row="0" StretchDirection="Both">
   <GroupBox x:Name="Ospite_Analisi" Header="Ospite">
          <Grid>
                <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="*" />
                     <ColumnDefinition Width="*" />
                     <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                      <RowDefinition Height="*" />
                      <RowDefinition Height="*" />
                      <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid Grid.Column="0" Grid.Row="0">
                      <Label>Inserire scudetto</Label>
           </Grid>
           <Grid Grid.Column="1" Grid.Row="0">
                 <StackPanel Orientation="Vertical">
                      <Label>Nome Squadra</Label>
                      <Label>Nazione</Label>
                      <Label>Campionato</Label>
                 </StackPanel>
           </Grid>
           <Grid Grid.Column="2" Grid.Row="0" Grid.RowSpan="2">
                                    <Label>Inserire controllo forma</Label>
           </Grid>
           <StackPanel Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Center">
                     <Label>Vittorie casa</Label>
                     <Label>Vittorie fuori</Label>
            </StackPanel>
            <Grid Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="3">
                  <DataGrid>
                     ...
                  </DataGrid>
            </Grid>
     </Grid>
 </GroupBox>
 </Viewbox>

联赛冠军
斯夸德拉酒店
纳齐翁
坎皮奥纳托
插入控制形式
卡萨维多利亚酒店
富奥里维多利亚酒店
...
我想要实现的是:

-在viewBox中以最大宽度(最小分辨率)修复这两个GroupBox,而不会丢失质量,也不会使其看起来像是强制渲染。我怎样才能做到这一点