0

私は(一種の)WPFの初心者です。そして、私はこのレイアウトにこだわっています。Viewbox は正常に表示され、ListBox のスペース (30%) も同様ですが、そのスペースに ListBox が表示されません。以下は、問題に関連する私の XAML です。

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="70*"/>
        <RowDefinition Height="30*"/>
    </Grid.RowDefinitions>
    <Viewbox Grid.Row="0" Grid.Column="0" DataContext="{Binding ElementName=thisControl}">
        <ItemsControl ItemsSource="{Binding Path=SomeProperty}" ItemTemplate="{StaticResource SomeTemplate}" >
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <UniformGrid/>
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
    </Viewbox>
    <ListBox Grid.Row="1" Grid.Column="0" ItemTemplate="{StaticResource ListBoxItemTemplate}" ItemsSource="{Binding Path=SomeOtherProperty}" Utils:ListBoxExtenders.AutoScrollToEnd="True"/>
</Grid>  

どんな助けでも大歓迎です。

4

1 に答える 1