September 2012
Intermediate to advanced
464 pages
10h 55m
English
Text is the most fundamental way of conveying and inputting information. WPF provides a bunch of elements and controls that allow text display and input.
Make sure Visual Studio is up and running.
We'll create a simple application that uses the more common text related controls to demonstrate their usage:
CH04.TextControls.MainWindow.xaml. Add four rows and two columns to the existing Grid:<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/>
<RowDefinition />
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>