Reputation: 1267
I have a lot of (actually all) <RowDefinition Height="*"/>
in my XAML for a single grid. Is there a way to simplify this to declare a grid whose rows have *
as height?
EDIT: Originally ask as Auto
instead of *
but the spirit of the question is the same: to simplify repetitive row definitions.
Upvotes: 0
Views: 98
Reputation: 15006
There's a good blog post by Toni Petrina about shorter way of writing Grid row and column definitions.
It comes down to writing it like this:
<Grid a:GridEx.RowCol="*,*|*,*">
Read more here: Shorter way of writing Grid row and column definitions
Upvotes: 1
Reputation: 11595
Grid doesn't support control templates (info taken from here.).
Upvotes: 0