diff -r d276306d801f -r 1c943d43fa81 ui/wpf/UIwrapper/UIwrapper/container.cpp --- a/ui/wpf/UIwrapper/UIwrapper/container.cpp Sun Jan 17 19:19:28 2016 +0100 +++ b/ui/wpf/UIwrapper/UIwrapper/container.cpp Wed Jan 20 11:35:01 2016 +0100 @@ -21,6 +21,13 @@ return container; } +UI_EXPORT void* __stdcall UIgrid(gcroot *parent, int margin, int columnspacing, int rowspacing) { + UI::GridContainer ^grid = UI::GridContainer::CreateGridContainer(*parent, margin, columnspacing, rowspacing); + gcroot *container = new gcroot(); + *container = grid; + return container; +} + /* ------------------- layout functions ------------------- */ @@ -29,3 +36,19 @@ UI::Container ^ct = *container; ct->Layout->Fill = fill != 0; } + +UI_EXPORT void __stdcall UIlayout_hexpand(gcroot *container, int expand) { + UI::Container ^ct = *container; + ct->Layout->Hexpand = expand != 0; +} + +UI_EXPORT void __stdcall UIlayout_vexpand(gcroot *container, int expand) { + UI::Container ^ct = *container; + ct->Layout->Vexpand = expand != 0; +} + +UI_EXPORT void __stdcall UIlayout_newline(gcroot *container) { + UI::Container ^ct = *container; + ct->Layout->NewLine = true; +} +