Search code examples
gridwindows-runtimevisualstates

winrt Grid RowDefinitions change depends on VisualState


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?


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.