<Window x:Class="TestProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="800"
Height="600"
Title="TestProject"
FontFamily="나눔고딕코딩"
FontSize="16">
<Window.Resources>
<RichTextBox x:Key="RichTextBoxKey">
<RichTextBox.CacheMode>
<BitmapCache
EnableClearType="True"
RenderAtScale="1"
SnapsToDevicePixels="True" />
</RichTextBox.CacheMode>
</RichTextBox>
<BitmapCacheBrush x:Key="BitmapCacheBrushKey" Target="{StaticResource RichTextBoxKey}">
<BitmapCacheBrush.BitmapCache>
<BitmapCache
EnableClearType="False"
RenderAtScale="0.4"
SnapsToDevicePixels="False" />
</BitmapCacheBrush.BitmapCache>
</BitmapCacheBrush>
</Window.Resources>
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Name="button1" Grid.Row="0" Grid.Column="0"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button2" Grid.Row="0" Grid.Column="1"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button3" Grid.Row="0" Grid.Column="2"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button4" Grid.Row="0" Grid.Column="3"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button5" Grid.Row="0" Grid.Column="4"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button6" Grid.Row="1" Grid.Column="0"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button7" Grid.Row="1" Grid.Column="1"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button8" Grid.Row="1" Grid.Column="2"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button9" Grid.Row="1" Grid.Column="3"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button10" Grid.Row="1" Grid.Column="4"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button11" Grid.Row="2" Grid.Column="0"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button12" Grid.Row="2" Grid.Column="1"
Background="{StaticResource BitmapCacheBrushKey}"
Content="Button"
FontWeight="Bold" />
<Button Name="button13" Grid.Row="2" Grid.Column="2"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button14" Grid.Row="2" Grid.Column="3"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button15" Grid.Row="2" Grid.Column="4"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button16" Grid.Row="3" Grid.Column="0"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button17" Grid.Row="3" Grid.Column="1"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button18" Grid.Row="3" Grid.Column="2"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button19" Grid.Row="3" Grid.Column="3"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button20" Grid.Row="3" Grid.Column="4"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button21" Grid.Row="4" Grid.Column="0"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button22" Grid.Row="4" Grid.Column="1"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button23" Grid.Row="4" Grid.Column="2"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button24" Grid.Row="4" Grid.Column="3"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
<Button Name="button25" Grid.Row="4" Grid.Column="4"
Background="{StaticResource BitmapCacheBrushKey}"
FontWeight="Bold"
Content="Button" />
</Grid>
</Window>