0
我Itemcontrol如何綁定Itemcontrol
<ItemsControl ItemsSource="{Binding}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Red" BorderThickness="1" Background="Blue">
<TextBlock Text="{Binding Text}"/>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
如何使用C鋒利的代碼綁定的Itemcontrol。
的ItemsSource?你有很多關於如何綁定ItemsControl從哪裏獲取數據的選項? – 2010-08-30 16:56:12
我是wpf的新手,你可以參考這裏。 http://stackoverflow.com/questions/3595500/need-to-add-text-to-rectangle – Lalchand 2010-08-30 17:02:43
只是我需要將一些示例文本綁定到Itemcontrol。 – Lalchand 2010-08-30 17:05:06