<Window x:Class="BitmapCache.BitmapCacheBrushComparison"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="421" Width="625" >
    <StackPanel Margin="5">
        <Label Content="Oryginalny"/>
        <WrapPanel>
            <WrapPanel.CacheMode>
                <BitmapCache RenderAtScale="1"/>
            </WrapPanel.CacheMode>
            <Ellipse StrokeThickness="3" Stroke="Black" Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black" Width="40" Height="40" Fill="Red"/>
        </WrapPanel>
        <Label Content="RenderAtScale='0.5'"/>
        <WrapPanel>
            <WrapPanel.CacheMode>
                <BitmapCache RenderAtScale="0.5"/>
            </WrapPanel.CacheMode>
            <Ellipse Name="ellipse1" StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse Name="ellipse2" StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse Name="ellipse3" StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse Name="ellipse4" StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
        </WrapPanel>
        <Label Content="RenderAtScale='1', powiększenie 2x"/>
        <WrapPanel>
            <WrapPanel.CacheMode>
                <BitmapCache RenderAtScale="1"/>
            </WrapPanel.CacheMode>
            <WrapPanel.LayoutTransform>
                <ScaleTransform ScaleY="2" ScaleX="2"/>
            </WrapPanel.LayoutTransform>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
        </WrapPanel>
        <Label Content="RenderAtScale='2', powiększenie 2x"/>
        <WrapPanel>
            <WrapPanel.CacheMode>
                <BitmapCache RenderAtScale="2"/>
            </WrapPanel.CacheMode>
            <WrapPanel.LayoutTransform>
                <ScaleTransform ScaleY="2" ScaleX="2"/>
            </WrapPanel.LayoutTransform>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
            <Ellipse StrokeThickness="3" Stroke="Black"  Width="40" Height="40" Fill="Red"/>
        </WrapPanel>
    </StackPanel>
</Window>