MNGuiPanel.DockTop
Skip to content
mnscript
MNGuiPanel.DockTop() 

Description ​

Docks the element to the top.

Example ​

msc
using Surface;
using System;

MNGuiFrame frame = Surface.CreateApplicationFrame();
MNGuiPanel pnl = frame.GetPanel();

// Creates a panel in and docks it to the top.
MNGuiPanel panel = Surface.CreatePanel(pnl);
panel.DockTop();

// Update to add the new UI to the screen.
Surface.Update();

// Keep the program alive so the UI stays.
while(true){
    System.Sleep(1);
}