Exemplo n.º 1
0
        /// <summary>
        /// 获取当前的布局
        ///
        /// 本布局是当前显示的布局。
        /// </summary>
        private TreeGridExpandedItems GetCurrentExpandedItems()
        {
            var items = new TreeGridExpandedItems();

            //get nodes of all expanded nodes
            foreach (var row in this.RecursiveRows)
            {
                if (row.IsExpanded)
                {
                    items.Add(GetId(row.DataContext));
                }
            }

            return(items);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取当前的布局
        /// 
        /// 本布局是当前显示的布局。
        /// </summary>
        private TreeGridExpandedItems GetCurrentExpandedItems()
        {
            var items = new TreeGridExpandedItems();

            //get nodes of all expanded nodes
            foreach (var row in this.RecursiveRows)
            {
                if (row.IsExpanded)
                {
                    items.Add(GetId(row.DataContext));
                }
            }

            return items;
        }