Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-wrap-a-border-around-the-content-of-a-canvas.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* 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
2020-09-04 09:46:28 -07:00

1.0 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Wrap a Border Around the Content of a Canvas 03/30/2017
controls [WPF], Canvas
controls [WPF], Border
Canvas control [WPF], wrapping with Border
Border control [WPF], wrapping Canvas
caf0404f-f4e7-484f-9928-5dae1238d8ef

How to: Wrap a Border Around the Content of a Canvas

This example shows how to wrap a xref:System.Windows.Controls.Canvas element with a xref:System.Windows.Controls.Border.

Example

The following example shows how to display Hello World! inside a xref:System.Windows.Controls.Canvas element. The xref:System.Windows.Controls.Canvas element is wrapped by a xref:System.Windows.Controls.Border element so that a border outlines the element.

[!code-xamlCanvasHelloWorldBorder#1]

See also