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

  • Home
  • SEARCH
  • 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 7719899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:31:47+00:00 2026-06-01T03:31:47+00:00

I have 2 views (first view – custom user control, MainWindow view – main

  • 0

I have 2 views (first view – custom user control, MainWindow view – main view with first custom control as a child).

First view has TreeView and DependencyProperty SelectedModel which changes when user change selection in TreeView.
Main window view also has label with binding to SelectedModel property of MainWindowModel.

Label doesnt updates.

  • 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-06-01T03:31:48+00:00Added an answer on June 1, 2026 at 3:31 am

    I think by setting the DataContext of your FirstView, it breaks the data inheritance so your FirstView won’t have access to the data (i.e. SelectedModel) defined in your main viewmodel.

    Try commenting out

    public FirstView() 
    { 
        InitializeComponent(); 
        //this.DataContext = _viewModel;  
    } 
    

    and see if it works.

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

Sidebar

Related Questions

I have two views controlled by a uinavigationcontroller. the first view has a UIWebView
I have two views. The User view has some text and a button. I
I have 3 views in my application. My first view (FIRST_VIEW) has 2 buttons
I have the following situation: There is one custom view inside of the first
I have UINavigationController based app with two views. On the first view there is
I have two views with navigation controller: first view, there are empty text fields
I have an iphone application containing two views The first view have a button,
I have 2 Views, each View have a ViewController. I opened the first view
i have problem that i have 3 views, i goto first view to 2nd
I have two views (UIView) set-up: parent and child view. The child view is

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.