Common Sizing and Positioning Properties

So far in this chapter you’ve covered the key layout and positioning controls for WPF and Silverlight that derive from the System.Windows.Controls.Panel class. The Panel class is derived instead from the System.Windows.FrameworkElement class, which provides a set of common sizing dependency properties such as Height and Width and positioning dependency properties such as VerticalAlignment, HorizontalAlignment, and Margin. You’ve seen these used in examples already. This section provides a quick overview of that set of common sizing and positioning properties.

Sizing Properties

Supported By

WPF

Yes

Silverlight

Yes

The System.Windows.FrameworkElement class provides the following sizing dependency properties ...

Get XAML Developer Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.