Skip to content

Instantly share code, notes, and snippets.

View danhollick's full-sized avatar

Daniel Hollick danhollick

View GitHub Profile
<StackPanel ItemSpacing="20" ux:Class="MyFirstClass">
<string ux:Property="HeadlineText"/>
<Text FontSize="24" TextColor="#0006" Value="{Property
HeadlineText}" />
<Text FontSize="16" TextColor="#0004" Value="This is a sub-
heading. It can be much longer and wrap over two lines
sometimes." TextWrapping="Wrap" />
</StackPanel>
<Text FontSize="24" TextColor="#0006" Value="{Property HeadlineText}" />
<MyFirstClass HeadlineText="Woah, they can be different everytime? "/>
<MyFirstClass HeadlineText="Hey, this is neat"/>
Fruits: [
{ type: "Apple" },
{ type: "Orange" },
{ type: "Pear" },
{ type: "Banana" },
{ type: "Plum"}
]
Fruits: [
{
type: "Apple",
subtypes: [
"GrannySmith",
"Crab",
"Red",
"Toffee"
]
},
<JavaScript>
module.exports = {
};
</JavaScript>
<JavaScript >
module.exports = {
Fruits: [
{ type: "Apple" },
{ type: "Orange" },
{ type: "Pear" },
{ type: "Banana" },
{ type: "Plum"}
]
}
<Grid Alignment="Center" CellSpacing="10">
<Each Items="{Fruits}">
<Text Value="{type}"/>
</Each>
</Grid>
<JavaScript >
module.exports = {
Fruits: [
{ type: "Apple" },
{ type: "Orange" },
{ type: "Pear" },
{ type: "Banana" },
{ type: "Plum"}
]
}
<Grid Alignment="Center" CellSpacing="10" >
<Each Items="{Fruits}">
<Text Value="{type}" />
</Each>
</Grid>