Replacing StackPanel by Grid