Loading unselected tabs children

3 posts, 0 answers
  1. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 12 Sep 2011 Link to this post

    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. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 13 Sep 2011 Link to this post

    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.
  3. DevCraft banner
  4. Mesut
    Mesut avatar
    10 posts
    Member since:
    Jul 2011

    Posted 14 Sep 2011 Link to this post

    I've solved the problem thanks for nothing.

    I use MouseLeftButtonUp event instead of GotFocus and it is working now.
Back to Top