Partager via


Using the Canvas layout panel

A Canvas layout panel is the simplest layout panel in Blend for Visual Studio 2012. It supports absolute positioning and does not apply any layout policy to its child objects—it is a blank canvas. Use a Canvas layout panel when fixed positioning is paramount. Objects that you place in a Canvas layout panel will not automatically resize when you resize your application as they can with a Grid layout panel.

Add a Canvas layout panel to a document by using the Assets panel JJ170830.0d8b8d29-1af9-418f-8741-be3097d76eab(fr-fr,VS.110).png or the layout container button in the Tools panel. The following XAML code is added to your project:

<Canvas/>

Items placed randomly in a canvas layout panel

JJ170830.e1ae27f0-3a57-454e-b580-877dcea8836d(fr-fr,VS.110).png