-
Notifications
You must be signed in to change notification settings - Fork 0
XML Construction
Macocian Alexandru Victor edited this page Mar 13, 2019
·
1 revision
MonoMenu is meant to be used with XML files.
The structure is described below:
<Menu>
Content
</Menu>
Inside the menu tags will be placed the children logical nodes of the root. The structure of a Logical Node is described below:
<Rectangle>
<Name></Name>
<Width></Width>
<Height></Height>
<RelativeX></RelativeX>
<RelativeY></RelativeY>
<Style></Style>
<Font></Font>
<Background></Background>
<Foreground></Foreground>
<VerticalAlignment></VerticalAlignment>
<HorizontalAlignment></HorizontalAlignment>
<VerticalTextAlignment></VerticalTextAlignment>
<HorizontalTextAlignment></HorizontalTextAlignment>
<Text></Text>
<FontSize></FontSize>
<BorderSize></BorderSize>
<BorderColor></BorderColor>
<Visibility></Visibility>
<AutoArrange></AutoArrange>
<Orientation></Orientation>
<Source></Source>
<Radius></Radius>
<Events>
</Events>
<Children>
</Children>
</Rectangle>
- None of the properties are required to be present in the XML. All of the properties have default values, thus a usual declaration of a node can be much smaller.
- Inside the children tags, another set of logical nodes can be defined.
- For details regarding events declaration see the detailed description of events.