In my XAML I got this
<UniformGrid x:Name="gameGrid" Columns="{Binding GridColumnSize}" Rows="{Binding GridRowSize}"/>
and I want to bind the values to these in my code so I can change them
public int GridColumnSize = 5;
public int GridRowSize = 7;
It doesn't work though. When I put there for example 35 buttons it will display 6 * 6 grid, since that's how it acts normally. So how do I bind it? Or is there another way?