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 8341503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:30:04+00:00 2026-06-09T05:30:04+00:00

I am having one view where I need to display some Grid and TabControl.

  • 0

I am having one view where I need to display some Grid and TabControl. There is one column on a grid that should display something like a Note (Remark) property. Since this field can contain large amount of data, I am going to have one tab with TextBox control that should allow user to see/edit note, while grid column will show only a few first letters on the note.

I am going to post relevant parts only:

public classSomeViewModel : ViewModelBase
{
    public SomeViewModel()
    {
        TabScreens = New List<ViewModelBase>();
        TabScreens.Add(new AnotherViewModel1());
        TabScreens.Add(new AnotherViewModel2());
    }

    List<ViewModelBase> TabScreens{get;set;}
}

SomeView xaml:

<DataTemplate DataType="{x:Type vm:AnotherViewModel1}">
    <vw:AnotherView1 />
</DataTemplate>

<DataTemplate DataType="{x:Type vm:AnotherViewModel2}">
    <vw:AnotherView2 />
</DataTemplate>

AnotherView2:

<Grid>
    <TextBox Text={Binding Note} />
</Grid>

AnotherViewModel2:

public class AnotherViewModel2
{
    public string Note {get;set;}
}
}

So TabControl on View is bound to TabScreens. DataTemplates ensure that both AnotherView1 and AnotherView2 will be loaded when SomeView is loaded. Each row in grid contains different remark. What is the cleanest way to synchronize SomeViewModel Remark and AnotherViewModel2 Remark?

  • 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-09T05:30:06+00:00Added an answer on June 9, 2026 at 5:30 am

    Combine the 2 view models into a master view model with a single Remark property. Don’t introduce a need to synchronize if it’s not necessary.

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

Sidebar

Related Questions

I am having one GtkVbox and I am adding it to GtkViewPort . View
How do I go about having two view models communicate with one another using
I am having one flow field manager added on screen & in that manager
I need to create a scrollable composite view on iOS. That is to say,
I am having one class called BaseClass which contains some logic applicable to whole
I have one main view with an associated controller. I have some rather complicated
Basically, I want to have an app with only one view that has an
I am having trouble handling the selections in DataGridView . My grid view contains
I'm building an interactive movie of some sort , having more video clips that
I am having a view to display a list of Shops within a UITableView.

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.