I developed simple UserControl (named "WindowsControl")
which contains single RadWindow (named "ListScreenWindow") control placed in the Grid (named "WindowPlaceHolder").
Multiple instances of "WindowsControl" should be added to particular ItemsControl dinamically.
The point is showing multiple RadWindow controls AT THE SAME TIME containing some buttons, gridview etc.
Window is shown in the code-behind of user control like this:
private void UserControl_Loaded(object sender, RoutedEventArgs e) { ListScreenWindow.Show(); }
First dynamically added control is shown correctly (window is shown), but second one throws exception in UserControl_Loaded:
ArgumentException: The value does not fall into the specified range
Maybe following piece of information might be helpfull for you:
I use Prism2 (Composite Application Guidance library) and "WindowControl" is actually a view, and ItemsControl is region.
Could you help us with this?