Shorter way of writing Grid row and column definitions

A smart way of writting Row/Col definitions of a Grig in a compact format: use attached properties that accept a string format either for RowDefinitions/ColumsDefinitions separatly (*,Auto,2*) or for RowCol (same syntax with | separating Row first from Col next).

It’s for Windows Phone but could also be applied to WPF/Xaml: Shorter way of writing Grid row and column definitions | Toni codes .NET.

Edit: The same kind of solution have been provided by Thomas Levesque here [WPF] A simpler Grid using XAML attribute syntax (thank you Thomas for english version).

One thought on “Shorter way of writing Grid row and column definitions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s