I would like to add to a canvas different controls and collections. It seems hard to bind them via XAML. I can bind only one collection.. Also i would like to add background image built from tiles -user. So is it better to handle it via code or via XAML ?
Share
For this set your canvas as the
ItemsControl.ItemsPaneland bindingItemsControl.ItemsSourceto the list of items that you want your canvas to display.see this example… http://forums.silverlight.net/p/29753/96439.aspx
You can bind to mutliple collections through what we call
CompositeCollection. see the example in the bottom of the page.http://msdn.microsoft.com/en-us/library/system.windows.data.compositecollection.aspx
How to set a .PNG image as a TILED background image for my WPF Form?