Is it possible to bind an OvservableCollection of Labels or and FrameworkElement to a canvas? If so how can this be implemented?
A:
You can use an ItemsControl and set its ItemsPanel property to a Canvas:
<ItemsControl ItemsSource={Binding Items}>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Canvas/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
Hope this help
Jalfp
2009-10-13 15:44:27