예제 #1
0
        //private Dictionary<ContainerWrapper, ContainerGraphics> _containerMap;
        //public Dictionary<ContainerWrapper, ContainerGraphics> ContainerMap
        //{
        //    get { return _containerMap; }
        //}
        private void PushState()
        {
            StateGraphics sg = new StateGraphics();

            //if (states.Count > 0)
            //{
            //    Separator sep = new Separator();
            //    sep.Margin = new System.Windows.Thickness(4);
            //    panel.Children.Insert(0, sep);
            //    stateSeparators.Add(sg, sep);
            //}

            states.Push(sg);

            panel.Children.Insert(0, sg);

            setStatesSeparator();
        }
예제 #2
0
 private Separator createSeparator(StateGraphics sg)
 {
     Separator sep = new Separator();
     sep.Margin = new System.Windows.Thickness(4);
     panel.Children.Insert(0, sep);
     stateSeparators.Add(sg, sep);
     return sep;
 }