Mega Code Archive

 
Categories / C# / WPF
 

Engrave Text

<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">     <Grid.Resources>         <Style TargetType="{x:Type TextBlock}">             <Setter Property="FontFamily" Value="Times New Roman" />             <Setter Property="FontSize" Value="144" />             <Setter Property="HorizontalAlignment" Value="Center" />             <Setter Property="VerticalAlignment" Value="Center" />         </Style>     </Grid.Resources>     <Grid.RowDefinitions>         <RowDefinition />         <RowDefinition />     </Grid.RowDefinitions>     <TextBlock Grid.Row="1" Foreground="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}">         Engrave         <TextBlock.RenderTransform>             <TranslateTransform X="-2" Y="-2" />         </TextBlock.RenderTransform>     </TextBlock>     <TextBlock Grid.Row="1" Foreground="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">         Engrave     </TextBlock> </Grid>