コード例 #1
0
        private void Button2_Click(object sender, RoutedEventArgs e)
        {
            var collection = (ObservableCollection <MyObject>)DataContext;

            // Expand "path" of items. No items traversal in this case!
            RadTreeListView1.ExpandItemIntoView(new[] { collection[99], collection[99].Items[99], collection[99].Items[99].Items[99] });
        }
コード例 #2
0
        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            var collection = (ObservableCollection <MyObject>)DataContext;

            // Expand and scroll into view particular item.
            // The tree list in this case will need to find first the path to this item which will traverse all items.
            RadTreeListView1.ExpandItemIntoView(collection[99].Items[99].Items[99]);
        }