Ejemplo n.º 1
0
 private void node_UnhoverTriggered(object sender, EventArgs e)
 {
     if (IsSimulationMode)
     {
         whiteboard.Children.Remove(textPopover);
         textPopover = null;
     }
 }
Ejemplo n.º 2
0
        private void node_HoverTriggered(object sender, EventArgs e)
        {
            if (IsSimulationMode)
            {
                var node = (Node)sender;

                List <int> list;
                SimulationData.TryGetValue(node.Id, out list);
                if (list == null)
                {
                    return;
                }

                textPopover      = new TextPopover();
                textPopover.Text = String.Join <int>(",", list);

                Canvas.SetTop(textPopover, Canvas.GetTop(node) + node.Diameter);
                Canvas.SetLeft(textPopover, Canvas.GetLeft(node));
                Canvas.SetZIndex(textPopover, 100);
                whiteboard.Children.Add(textPopover);
            }
        }