Exemple #1
0
        public static void EditCurrent(ListLogicalView view)
        {
            //开始编辑该行。
            var grid = view.Control as RafyTreeGrid;

            WPFHelper.InvokeUntil(() =>
            {
                var row = grid.FindRow(grid.SelectedItem);
                if (row != null)
                {
                    var column = grid.FindColumnByProperty(TaskOrCategory.NameProperty);
                    var cell   = row.FindCell(column);

                    grid.TryEditRow(row, cell);

                    return(true);
                }

                return(false);
            });
        }