Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 320943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:48:00+00:00 2026-05-12T08:48:00+00:00

In a dialog from my application, I have an observable collection (stored somewhere else)

  • 0

In a dialog from my application, I have an observable collection (stored somewhere else) bound to a list of tabs. When I close and reopen the dialog, the currently selected tab gets lost and winds up to the be the first one. How do I set up my tabs so that the selected tab persists?

I had the impression that the observable collection had “current item” property, but that doesn’t seem to be case. I’ve looked at ItemCollection and CollectionView, which do have a current item property, but I’m not sure if that’s that I’d be interested in.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:48:01+00:00Added an answer on May 12, 2026 at 8:48 am

    In the Closing event of your dialog, save away the currently selected TabItem.

    In the Loaded event of your dialog, simply say:

    yourTabControl.SelectedItem = _savedTab;
    

    Code-behind is the easiest way to accomplish this. ObservableCollection is not going to help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have DialogFragment and a Loader . Dialog prompts user to logout from Application.
How can I hide my table database file from main application. I have a
now I am doing an Android application.I have to read a file from sdcard.I
I'm trying to show an alert dialog with my application from a non-activity. So
So i have to show a jquery UI Dialog from codebehind. I've tried everything:
I have downloaded an application from internet(from Chrome browser) named a.app, and there will
I have published a WinForms application from Visual Studio 2010. It uses .NET 4.0.
How do you call a modalpopupextender(dialog panel) from any web page in the application
I have a reasonably simple split view application adapted from iPhone code. The main
I have been trying to invoke my application from browser on android 3.1 (Honeycomb)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.