Sets the horizontal gravity for the UIElement
this
The horizontal alignment
Sets the vertical gravity for the UIElement
The vertical alignment