Question - What do you know by content alignment in WPF?
Answer -
There are two types of content alignment in WPF:
- HorizontalContentAlignment
- VerticalContentAlignment
These both properties are defined in the System.Windows.Controls.Control class which is the parent class of all controls in WPF.
By default the vertical and horizontal alignment of content of a TextBox is left and top and button is center.
For example: