* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
2.1 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|
| How to: Create a Reflection | 03/30/2017 |
|
|
4f017e16-ab80-43c7-98df-03b6bddbb203 |
How to: Create a Reflection
This example shows how to use a xref:System.Windows.Media.VisualBrush to create a reflection. Because a xref:System.Windows.Media.VisualBrush can display an existing visual, you can use this capability to produce interesting visual effects, such as reflections and magnification.
Example
The following example uses a xref:System.Windows.Media.VisualBrush to create a reflection of a xref:System.Windows.Controls.Border that contains several elements. The following illustration shows the output that this example produces.
[!code-csharpvisualbrush_markup_snip#GraphicsMMVisualBrushReflectionExampleWholePage] [!code-vbvisualbrush_markup_snip#GraphicsMMVisualBrushReflectionExampleWholePage] [!code-xamlvisualbrush_markup_snip#GraphicsMMVisualBrushReflectionExampleWholePage]
For the complete sample, which includes examples that show how to magnify parts of the screen and how to create reflections, see VisualBrush Sample.
