Skip to content

Instantly share code, notes, and snippets.

@michael-hawker
Created January 29, 2020 19:13
Show Gist options
  • Save michael-hawker/41e2591b76083cf95e1cee5c5b753366 to your computer and use it in GitHub Desktop.
Save michael-hawker/41e2591b76083cf95e1cee5c5b753366 to your computer and use it in GitHub Desktop.
#XAMLing XAML Studio Example
{
"Items":
[
{
"index": 1,
"def": "Iterate a design with XAML for fun.",
},
{
"index": 2,
"def": "Explore new things with XAML.",
},
{
"index": 3,
"def": "Share results and snippets with others."
}
]
}
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel Padding="60,20">
<TextBlock FontSize="36">
<Run FontSize="96" Foreground="#FFFC5185">#XAMLing</Run><LineBreak/>
<Run>/ˈzæməlɪŋ/</Run><LineBreak/>
<Run FontStyle="Italic">verb</Run> <Run>[With XAML Studio]</Run><LineBreak/>
</TextBlock>
<ItemsControl ItemsSource="{Binding Items}" Margin="20,-12,0,0">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Margin="0,0,0,24" FontSize="24">
<Run Text="{Binding index}"/>. <Run Text="{Binding def}"/>
</TextBlock>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment