81 window.Closed([obj](IInspectable const& sender, WindowEventArgs) { |
81 window.Closed([obj](IInspectable const& sender, WindowEventArgs) { |
82 // TODO: destroy UiObject*, context, ... |
82 // TODO: destroy UiObject*, context, ... |
83 delete obj->wobj; |
83 delete obj->wobj; |
84 }); |
84 }); |
85 |
85 |
86 obj->container = new UiBoxContainer(grid, UI_CONTAINER_VBOX, 0, 0); |
86 obj->container = new UiBoxContainer(grid, UI_BOX_CONTAINER_VBOX, 0, 0); |
87 |
87 |
88 if (uic_get_menu_list()) { |
88 if (uic_get_menu_list()) { |
89 // create/add menubar |
89 // create/add menubar |
90 MenuBar mb = ui_create_menubar(obj); |
90 MenuBar mb = ui_create_menubar(obj); |
91 mb.VerticalAlignment(VerticalAlignment::Top); |
91 mb.VerticalAlignment(VerticalAlignment::Top); |