Home Setting columnDefinition and RowDefinition from style template?
Reply: 0

Setting columnDefinition and RowDefinition from style template?

user4730
1#
user4730 Published in September 21, 2018, 8:04 am

Is it possible to add the follow code:

<Grid.RowDefinitions>
    <RowDefinition Height="auto"/>
    <RowDefinition Height="*"/>
    <RowDefinition Height="auto"/>
</Grid.RowDefinitions>

into a Style / Setter template for a Grid? And then automatically setup the RowDefinitions for a Grid like this?

<Grid style="{StaticResource MyRowDefs}">
    <Button  Grid.Row="0" Content="Button1/>
    <TextBox Grid.Row="1"/>
    <Button  Grid.Row="2" Content="Button2/>
</Grid>
share|improve this question

2 Answers 2

active oldest votes
up vote 0 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.400884 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO