XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
814 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In the following XAML:
<Window.Resources>
<ControlTemplate x:Key="ListTemplate">
<Grid>
<ItemsPresenter TextBlock.Foreground="Blue"/>
</Grid>
</ControlTemplate>
</Window.Resources>
<Grid>
<ListBox Name="listCars" DisplayMemberPath="Model"
Template="{StaticResource ListTemplate}"/>
</Grid>
I do not understand why the ItemsPresenter
specifies a TextBlock
. Where does the documentation explain that?