예제 #1
0
파일: TreeViewModel.cs 프로젝트: Joxx0r/ATF
        private void labelEditingContext_BeginLabelEdit(object sender, BeginLabelEditEventArgs e)
        {
            object item = e.Item;
            var path = item as Path<object>;
            if (path != null)
            {
                item = path.Last;
            }

            // Issue here as item may be adapter

            foreach (var node in m_itemToNodesMap[item])
            {
                node.IsInLabelEditMode = true;
            }
        }
예제 #2
0
        private void labelEditingContext_BeginLabelEdit(object sender, BeginLabelEditEventArgs e)
        {
            object item = e.Item;
            var path = item as Path<object>;
            if (path != null)
            {
                item = path.Last;
            }

            // Issue here as item may be adapter

            Node node;
            if (m_itemToNodeMap.TryGetValue(item, out node))
            {
                node.IsInLabelEditMode = true;
            }
        }