Caching a group of elements in a StackPanel

<Grid x:Name="LayoutRoot" Background="White"
CacheMode="BitmapCache">
<Rectangle Height="60" Width="50"
Fill="Green" />
<Ellipse Height="30" Width="200" Opacity="0.75"
Fill="Blue" />
<Path Stroke="Orange"
StrokeThickness="10"
Height="200" Width="200"
Data="M 10,80 C 150,5 100,0 200,50 H 100" />
<Path Stroke="Purple"
Height="100" Width="300"
StrokeThickness="10"
Data="M 80,10 C 350,5 100,0 100,55" />
</Grid>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.