问题描述:

To what is it going to bind if i only write binding?

Example on ItemsSource.

<DataTemplate x:Key="CommandsTemplate">

<ItemsControl IsTabStop="False" ItemsSource="{Binding}" Margin="6,2">

<ItemsControl.ItemTemplate>

<DataTemplate>

<TextBlock Margin="2,6">

<Hyperlink Command="{Binding Path=Command}">

<TextBlock Text="{Binding Path=DisplayName}" />

</Hyperlink>

</TextBlock>

</DataTemplate>

</ItemsControl.ItemTemplate>

</ItemsControl>

</DataTemplate>

Thank u for awnsers.

相关阅读:
Top