-
-
Save milleniumbug/b9bae14b19a8b47e639449d2dff83ff0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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