Click here to Skip to main content
Click here to Skip to main content

Centering elements on a canvas in WPF

While I was fiddling around with WPF in general I noticed that when I dropped inane little circles and boxes onto a canvas I'd never be able to center it inside the containing canvas just right. If you try the following XAML in the excellent Kaxaml tool for instance:
We're sorry, but the article you are trying to view was deleted at 27 Apr 2009.

Please go to the C# Table of Contents to view the list of available articles in this section.
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 31 Mar 2009
Article Copyright 2009 by Rajasekharan Vengalil
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid