Question

Is it possible to chage Grid.RowDefinition when VisualState changes? Can I extract Grid.RowDefinitions in style or template for select that I need in story board?

Was it helpful?

Solution

You could possibly write an attached behavior/property that changes the grid row/column definitions depending on a parameter, but you can also use something like a WrapGrid, VariablieSizedWrapGrid or as I said in an answer to your separate question - you can just have separate grids with different layouts and switch visibilities depending on the visual state.

OTHER TIPS

In your VisualState.Setters

<VisualState.Setters>
               <Setter Target="row1.Height" Value="*"/>
</VisualState.Setters>

In your Grid.RowDefinitions :

<Grid.RowDefinitions>
                <RowDefinition x:Name="row1" Height="auto"/>
</Grid.RowDefinitions>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top