|
| 1 | +<UserControl x:Class="MaterialDesignColors.WpfExample.Typography" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + mc:Ignorable="d" |
| 7 | + d:DesignHeight="300" d:DesignWidth="300"> |
| 8 | + <UserControl.Resources> |
| 9 | + <Style TargetType="TextBlock" BasedOn="{StaticResource MaterialDesignCaptionTextBlock}"> |
| 10 | + <Setter Property="Opacity" Value=".68"></Setter> |
| 11 | + </Style> |
| 12 | + </UserControl.Resources> |
| 13 | + |
| 14 | + <Grid Margin="32"> |
| 15 | + <Grid.ColumnDefinitions> |
| 16 | + <ColumnDefinition Width="Auto" /> |
| 17 | + <ColumnDefinition Width="64" /> |
| 18 | + <ColumnDefinition Width="Auto" /> |
| 19 | + </Grid.ColumnDefinitions> |
| 20 | + <Grid.RowDefinitions> |
| 21 | + <RowDefinition Height="Auto" /> |
| 22 | + <RowDefinition Height="Auto" /> |
| 23 | + <RowDefinition Height="Auto" /> |
| 24 | + <RowDefinition Height="Auto" /> |
| 25 | + <RowDefinition Height="Auto" /> |
| 26 | + <RowDefinition Height="Auto" /> |
| 27 | + <RowDefinition Height="Auto" /> |
| 28 | + <RowDefinition Height="Auto" /> |
| 29 | + <RowDefinition Height="Auto" /> |
| 30 | + <RowDefinition Height="Auto" /> |
| 31 | + <RowDefinition Height="Auto" /> |
| 32 | + </Grid.RowDefinitions> |
| 33 | + <TextBlock Grid.Row="0" Grid.Column="0" Margin="0 26 0 0">Display 4 - MaterialDesignDisplay4TextBlock</TextBlock> |
| 34 | + <TextBlock Grid.Row="0" Grid.Column="2" Style="{StaticResource MaterialDesignDisplay4TextBlock}" Margin="0 4 0 4">Light 112sp</TextBlock> |
| 35 | + |
| 36 | + <TextBlock Grid.Row="1" Grid.Column="0" Margin="0 12 0 0">Display 3 - MaterialDesignDisplay3TextBlock</TextBlock> |
| 37 | + <TextBlock Grid.Row="1" Grid.Column="2" Style="{StaticResource MaterialDesignDisplay3TextBlock}" Margin="0 4 0 4">Regular 56sp</TextBlock> |
| 38 | + |
| 39 | + <TextBlock Grid.Row="2" Grid.Column="0" Margin="0 8 0 0">Display 2 - MaterialDesignDisplay2TextBlock</TextBlock> |
| 40 | + <TextBlock Grid.Row="2" Grid.Column="2" Style="{StaticResource MaterialDesignDisplay2TextBlock}" Margin="0 4 0 4">Regular 45sp</TextBlock> |
| 41 | + |
| 42 | + <TextBlock Grid.Row="3" Grid.Column="0" Margin="0 8 0 0">Display 1 - MaterialDesignDisplay1TextBlock</TextBlock> |
| 43 | + <TextBlock Grid.Row="3" Grid.Column="2" Style="{StaticResource MaterialDesignDisplay1TextBlock}" Margin="0 4 0 4">Regular 34sp</TextBlock> |
| 44 | + |
| 45 | + <TextBlock Grid.Row="4" Grid.Column="0" Margin="0 7 0 0">Headline - MaterialDesignHeadlineTextBlock</TextBlock> |
| 46 | + <TextBlock Grid.Row="4" Grid.Column="2" Style="{StaticResource MaterialDesignHeadlineTextBlock}" Margin="0 4 0 6">Regular 24sp</TextBlock> |
| 47 | + |
| 48 | + <TextBlock Grid.Row="5" Grid.Column="0" Margin="0 7 0 0">Title - MaterialDesignTitleTextBlock</TextBlock> |
| 49 | + <TextBlock Grid.Row="5" Grid.Column="2" Style="{StaticResource MaterialDesignTitleTextBlock}" Margin="0 6 0 8">Medium 20sp</TextBlock> |
| 50 | + |
| 51 | + <TextBlock Grid.Row="6" Grid.Column="0" VerticalAlignment="Center">Subheading - MaterialDesignSubheadingTextBlock</TextBlock> |
| 52 | + <TextBlock Grid.Row="6" Grid.Column="2" Style="{StaticResource MaterialDesignSubheadingTextBlock}" Margin="0 8 0 8">Regular 15sp</TextBlock> |
| 53 | + |
| 54 | + <TextBlock Grid.Row="7" Grid.Column="0" VerticalAlignment="Center">Body 2 - MaterialDesignBody2TextBlock</TextBlock> |
| 55 | + <TextBlock Grid.Row="7" Grid.Column="2" Style="{StaticResource MaterialDesignBody2TextBlock}" Margin="0 8 0 8">Medium 13sp</TextBlock> |
| 56 | + |
| 57 | + <TextBlock Grid.Row="8" Grid.Column="0" VerticalAlignment="Center">Body 1 - MaterialDesignBody1TextBlock</TextBlock> |
| 58 | + <TextBlock Grid.Row="8" Grid.Column="2" Style="{StaticResource MaterialDesignBody1TextBlock}" Margin="0 8 0 8">Regular 13sp</TextBlock> |
| 59 | + |
| 60 | + <TextBlock Grid.Row="9" Grid.Column="0" VerticalAlignment="Center">Caption - MaterialDesignCaptionTextBlock</TextBlock> |
| 61 | + <TextBlock Grid.Row="9" Grid.Column="2" Style="{StaticResource MaterialDesignCaptionTextBlock}" Margin="0 8 0 8">Regular 12sp</TextBlock> |
| 62 | + |
| 63 | + <TextBlock Grid.Row="10" Grid.Column="0" VerticalAlignment="Center">Button - MaterialDesignButtonTextBlock</TextBlock> |
| 64 | + <TextBlock Grid.Row="10" Grid.Column="2" Style="{StaticResource MaterialDesignButtonTextBlock}" Margin="0 8 0 8">MEDIUM (ALL CAPS) 14sp</TextBlock> |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + </Grid> |
| 69 | +</UserControl> |
0 commit comments