This project has moved and is read-only. For the latest updates, please go here.

ChildWindow and TabItemTemplate

Oct 18, 2011 at 11:02 AM
Edited Oct 18, 2011 at 11:07 AM

Hello,

I'm using ChildWindow in main project. Here's my problem:

I have window with one TabControl and one TabItem. In this TabItem i'm using ChildWindow and all works fine. But when I dynamically adds items to TabControl with data-binding and change to new item (added tabitem) the show method in ChildWindow control stops working. Nothing is showed.

Can somebody help me with this or this is bug ?

 

Oct 18, 2011 at 3:41 PM

Can you provide a sample application the reproduces this issue?

Oct 19, 2011 at 7:21 AM
Edited Oct 19, 2011 at 8:57 AM

Ok, here is sample application.

http://dl.dropbox.com/u/3789486/ChildWindowBug.zip


Steps to reproduce problem:

1) Click 'Add TabItem'. Switch to the 'Empty' TabItem and go back to the 'Start' TabItem. Click 'Show' and ChildWindow is not shows.

2) Click 'Add TabItem'. Click 'Show' and ChildWindow works. Switch to the 'Empty' TabItem and go back to the 'Start' TabItem click again 'Show' and ChildWindow is not shows.

 

Never mind I found that my code has got error. Sorry.

Oct 19, 2011 at 3:26 PM

I'm glad you solved your problem.