Posted On: Feb 22, 2018
In WPF, various properties are used while dealing with the content of content controls. The two properties are as follows:
# Horizontal Content Alignment, and
# Vertical Content Alignment
The parent class of all controls in WPF defines all the properties in System.Windows.Controls.Control class that is.
If we create a TextBox control and a UI with a Button, the UI looks like the following figure where the default vertical and horizontal alignment of the content of a Button is center. The default horizontal and vertical alignment of the content of a TextBox is left and top.
Never Miss an Articles from us.