Skip to content

Instantly share code, notes, and snippets.

@milleniumbug
Created July 25, 2016 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milleniumbug/b9bae14b19a8b47e639449d2dff83ff0 to your computer and use it in GitHub Desktop.
Save milleniumbug/b9bae14b19a8b47e639449d2dff83ff0 to your computer and use it in GitHub Desktop.
<Window x:Class="Katas.MainWindow"
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"
xmlns:local="clr-namespace:Katas"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Style x:Key="Underlined" TargetType="TextBlock">
<Setter Property="TextDecorations" Value="Underline"/>
<Setter Property="FontSize" Value="36"/>
</Style>
<Style x:Key="BlueUnderlined" TargetType="TextBlock" BasedOn="{StaticResource Underlined}">
<Setter Property="Foreground" Value="Blue"/>
</Style>
<Style x:Key="GreenUnderlined" TargetType="TextBlock" BasedOn="{StaticResource Underlined}">
<Setter Property="Foreground" Value="Green"/>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Style="{StaticResource BlueUnderlined}" Text="1" Grid.Row="0"/>
<TextBlock Style="{StaticResource BlueUnderlined}" Text="2" Grid.Row="1"/>
<TextBlock Style="{StaticResource GreenUnderlined}" Text="3" Grid.Row="2"/>
</Grid>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment