Beispiel #1
0
        void CreateRoot()
        {
            root                   = new InputVisualComponent(this.Game);
            root.StackOrder        = 0;
            root.StartingDrawOrder = 50;
            root.X                 = 0;
            root.Y                 = 0;
            root.XRelative         = 0;
            root.YRelative         = 0;

            root.OnStackChanged      += new EventHandler(root_OnStackChanged);
            root.OnStackOrderChanged += new EventHandler(root_OnStackChanged);
            root.OnMouseRelease      += new EventHandler <MouseEventArgs>(root_OnMouseRelease);
        }
        void CreateRoot()
        {
            root = new InputVisualComponent(this.Game);
            root.StackOrder = 0;
            root.StartingDrawOrder = 50;
            root.X = 0;
            root.Y = 0;
            root.XRelative = 0;
            root.YRelative = 0;

            root.OnStackChanged += new EventHandler(root_OnStackChanged);
            root.OnStackOrderChanged += new EventHandler(root_OnStackChanged);
            root.OnMouseRelease += new EventHandler<MouseEventArgs>(root_OnMouseRelease);
        }