Ejemplo n.º 1
0
 private void NavigateToListViewItemIndex(int listViewItemIndex)
 {
     SourceWatchControl.SelectedIndex = listViewItemIndex - 1;
     //MyListView.ScrollIntoView(MyListView.Items[0]);
     SourceWatchControl.ScrollIntoView(SourceWatchControl.SelectedItem);
     //item.Focus();
 }
Ejemplo n.º 2
0
        private double GetListViewOffset()
        {
            Point firstViewPosition = SourceWatchControl.TransformToAncestor(GridWithListViews)
                                      .Transform(new Point(0, 0));

            Point thierdViewPosition = DestinationeWatchControl.TransformToAncestor(GridWithListViews)
                                       .Transform(new Point(0, 0));

            return(thierdViewPosition.X - firstViewPosition.X);
        }
Ejemplo n.º 3
0
 private void GoToSelectedItem_OnClick(object sender, RoutedEventArgs e)
 {
     //MyListView.ScrollIntoView(MyListView.Items[0]);
     SourceWatchControl.ScrollIntoView(SourceWatchControl.SelectedItem);
 }