We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MML(Myra Markup Language) is XML based declarative language to describe UI.
I.e. following MML is equivalent to the UI from Quick Start Tutorial:
<Project> <Grid ColumnSpacing="8" RowSpacing="8" > <ColumnsProportions> <Proportion/> <Proportion/> </ColumnsProportions> <RowsProportions> <Proportion/> <Proportion/> </RowsProportions> <TextBlock Id="label" Text="Hello, World!" /> <ComboBox GridColumn="1" > <ListItem Text="Red" Color="#FF0000FF" /> <ListItem Text="Green" Color="#008000FF" /> <ListItem Text="Blue" Color="#0000FFFF" /> </ComboBox> <Button Text="Show" GridRow="1" /> <SpinButton Nullable="True" Width="100" GridColumn="1" GridRow="1" /> </Grid> </Project>
".xml" is preferred extension for files with MML.
Following code loads Project from MML:
string data = File.ReadAllText(filePath); Project project = Project.LoadFromXml(data);
Following code could be used to obtain reference to the element by id:
TextBlock label = (TextBlock) project.Root.FindWidgetById("label");