Ejemplo n.º 1
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

            foreach (var node in m_itemToNodesMap[item])
            {
                node.IsInLabelEditMode = true;
            }
        }
Ejemplo n.º 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;
            }
        }