Example #1
0
        public TabMenu()
        {
            menuLayout = new SingleColumnLayout();
            tabLayout  = new SingleRowLayout();

            menu.Layout = menuLayout;
        }
        public void Initialize()
        {
            var menu = new Menu();

            var layout = new SingleColumnLayout();

            layout.AddMenuItem("Start", () => context.RecordEvent("Game Start"));
            layout.AddMenuItem("Load", () => context.RecordEvent("Game Load"));
            layout.AddMenuItem("Quit", () => context.RecordEvent("Game Quit"));

            menu.Layout = layout;

            var workspace = new Workspace("Default");

            workspace.Layout.Add(menu);

            context.Desktop.PushWorkspace(workspace);
        }
 public TwoColumns(Int32Rect screen)
 {
     this.screen = screen;
     LeftColumn = new SingleColumnLayout(new Int32Rect(screen.X, screen.Y, screen.Width / 2, screen.Height));
     RightColumn = new SingleColumnLayout(new Int32Rect(screen.X + screen.Width / 2, screen.Y, screen.Width - screen.Width / 2, screen.Height));
 }