跳转至

wd:ScrollIntoView

Category: Input Controls · Available in the WPFDevelopers NuGet package.

List positioning helper

Example Source

SelectorExample.xaml

XAML Usage

<DataGrid ItemsSource="{Binding ListArrays,RelativeSource={RelativeSource AncestorType=UserControl}}"
                      SelectedItem="{Binding SelectItem,RelativeSource={RelativeSource AncestorType=UserControl}}"
                      wd:ScrollIntoView.IsPosition="true"
                      Margin="4" IsReadOnly="True">