Login

  • Sign in with Intersoft Social ID
  • Sign in with Intersoft ID (Developer Network)
  • Sign in with Google ID
  • Sign in with Open ID. Click for more options.
Intersoft Social ID
Password
Intersoft Latest Learn More

Latest Development Blogs

Blog RSS
Loading
Retrieving News

Forum                   Topics  Post

UXDesktop with bound ItemsSource errors when associated to TaskBar...

3 replies. Last post: January 3, 2011 10:42 PM by Glenn Layaar
Rate this topic:
Average rating: Not rated yet.
Tags :
Chris SwainMember

The attached sample project demonstrates the error I'm getting. 

Basically, I have a UXDesktop control with a bound ItemsSource to a collection of "WindowItem" objects.  I have subclassed the UXDesktop control so I can override the GetContainerForItemOverride() method and output UXWindow objects for each bound item. 

I get an InvalidCastException: Unable to cast object of type 'SilverlightPlayground.WindowItem' to type 'Intersoft.Client.Framework.IWindow' when I try to associate a UXDesktopDock control with the TaskBar property of the UXDesktop control. 

Can anyone help me figure out how to properly associate a UXDesktopDock control to a UXDesktop control when it's ItemsSource is bound to a collection of items that are not IWindow objects?

All times are GMT -5. The time now is 8:42 PM.