示例#1
0
        /*
         * Member Methods
         */

        public override void Activate()
        {
            if (ItemActivated != null)
            {
                ItemActivated(this, new EventArgs());
            }

            Control top = _parentList.GetControl().Parent;

            _panel.GetControl().Size     = top.Size;
            _panel.GetControl().Location = new System.Drawing.Point(0, 0);

            PhonePUC.LeftMenuStackItem item = new PhonePUC.LeftMenuStackItem("Back", new EventHandler(this.menuButtonPress));
            Globals.PushLeftMenuStack(item);

            top.Controls.Add(_panel.GetControl());
            top.Controls.Remove(_parentList.GetControl());
            _panel.GetControl().Focus();
        }
示例#2
0
 public static void PushLeftMenuStack(PhonePUC.LeftMenuStackItem item)
 {
     ((PhonePUC.PUCFrame)_callbackManager).PushLeftMenuStack(item);
 }
示例#3
0
 protected void HandleMoreItemActivate(object src, EventArgs e)
 {
     PhonePUC.LeftMenuStackItem item = new PhonePUC.LeftMenuStackItem("Back", new EventHandler(this.menuButtonPress));
     Globals.PushLeftMenuStack(item);
 }