Dock to DockPanel in Uno

Is there a way to change the Docking of an element in Uno code?

static void DockPanel.SetDock(Element elm, Dock dock);

Example

DockPanel.SetDock(MyElement, Dock.Bottom);