UXDesktop - How to generate different window types based on the bound Item?

6 replies. Last post: February 17, 2011 10:04 AM by Chris Swain
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Chris SwainMember

I have a custom implementation of the UXDesktop control that overrides the GetContainerForItemOverride() method.  In that method, I create new UXWindow objects and set some default properties and command bindings.  That has worked great up until now.  I have new requirements now to have the desktop generate UXWindows for some bound items in the ItemsSource, but also generate UXNavigationWindows for other items in the ItemsSource. 

Ideally, I'd like to be able to check for a property on each item being bound before creating the new window object.  The item would have a property telling the desktop what type of window to generate. 

What is the best way to accomplish this?

All times are GMT -5. The time now is 2:55 AM.
Previous Next