小编Sta*_*rov的帖子

扩展扩展器时滚动ScrollViewer

我有一个WPF MVVM应用程序,其中ScrollViewer包含一个带有多个Expanders的用户控件

<UserControl>   
    <Expander>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                ...               
            </Grid.RowDefinitions>

            <Expander Grid.Row="0" />

            <Expander Grid.Row="1" />
            ... 

        </Grid>
    </Expander>
</UserControl>
Run Code Online (Sandbox Code Playgroud)

我怎样才能使扩展的Expander滚动到视图中,以便它的内容可见?

wpf scroll expander mvvm

4
推荐指数
1
解决办法
1618
查看次数

标签 统计

expander ×1

mvvm ×1

scroll ×1

wpf ×1