Use ContentControl and DataTemplate.

Combine ContentControl and DataTemplate to change
the display of data depending on the data type.