我有一个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滚动到视图中,以便它的内容可见?