This is a migrated thread and some comments may be shown as answers.

Loading unselected tabs children

2 Answers 75 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Mesut
Top achievements
Rank 1
Mesut asked on 12 Sep 2011, 03:25 PM
Hi all,

My problem is, I have 5 TabItem and every one has own child controls. And I have to control whole tabs child controls for validation, however I can find only selected tabItem's children, other ones just absend.

I think it is a memory saving method if tab item not selected then don't load the children. But I need them.

So, my expecting is how can I load all children even if tabitem not selected or activated vice versa.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Mesut
Top achievements
Rank 1
answered on 13 Sep 2011, 02:07 PM
I changed my opinion. I don't want to see or get my tabs' children. I changed my checking procedure, now my checking algorithm works with tabItem name. If any object is null in tabItem then the tabItems' border is red and user can see when the errors are.

And user must click tabItem for seeing errored objects. My validation procedure processed again (now tabItem selected and children is visible) objects have own error messages.

But, TabItem GotFocus event does not fire first click. User have to click again same tabItem Header for focusing the tabItem.

How can I focus the tabItem just one click? or which event can I use for trigger my validation check?


Added pics tells the scenerio.
0
Mesut
Top achievements
Rank 1
answered on 14 Sep 2011, 10:14 AM
I've solved the problem thanks for nothing.

I use MouseLeftButtonUp event instead of GotFocus and it is working now.
Tags
TabControl
Asked by
Mesut
Top achievements
Rank 1
Answers by
Mesut
Top achievements
Rank 1
Share this question
or