Beispiel #1
0
        private void packetNavigation()
        {
            PacketView p = (PacketView)ErrorPacketsListView.SelectedItem;

            if (p != null)
            {
                PacketsDataGrid.ScrollIntoView(p);
                PacketsDataGrid.UpdateLayout();
                PacketsDataGrid.SelectedItem = p;
            }
        }
Beispiel #2
0
        //Navigating to next packet
        private void btnNext_Click(object sender, RoutedEventArgs e)
        {
            PacketsDataGrid.SelectedIndex++;
            PacketView p = (PacketView)PacketsDataGrid.SelectedItem;

            if (p != null)
            {
                PacketsDataGrid.ScrollIntoView(p);
                PacketsDataGrid.UpdateLayout();
            }
        }