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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:32:56+00:00 2026-05-20T02:32:56+00:00

Hi I bind collection from Caliburn Micro on ListBox control in view. Here is

  • 0

Hi I bind collection from Caliburn Micro on ListBox control in view. Here is it.

public BindableCollection<UserInfo> Friends
{
    get { return _friends; }
    set
    {
        _friends = value;
        NotifyOfPropertyChange(() => Friends);
    }
}

ListBox items is type of UserInfo.

Hi I sort and group listbox items, I use CollectioView on this purpose.

When I initialize ListBox I sort and group items with this method.

private ICollectionView _currentView;

//...

private void SortContactList()
{
    _currentView = CollectionViewSource.GetDefaultView(Friends);

    _currentView.GroupDescriptions.Add(new PropertyGroupDescription("TextStatus"));

    _currentView.SortDescriptions.Add(new SortDescription("TextStatus", ListSortDirection.Ascending));

    _currentView.SortDescriptions.Add(new SortDescription("Nick", ListSortDirection.Ascending));
}

TextStatus and Nick are properties of userInfo class.

When I update values of item in bindable collection Friend I would like have a way how notify collection view about this change. Because I need move item to right/good group.

for example

Friend[0].TextStatus = "Ofline" -> is in offline group

I change value on online;

Friend[0].TextStatus="Online" -> move in online group

and here I want notify collection view (_currentView) about change on Friends collection.

  • 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-20T02:32:57+00:00Added an answer on May 20, 2026 at 2:32 am

    I had the same issue when I created an application that had a table with the Rating column.
    I wondered why row doesn’t move up when I change rating, and in the end I used the Refresh method.

    For your example:

    Friend[0].TextStatus="Online" -> move in online group
    _currentView.Refresh();
    

    Fortunately, performance problems didn’t occur, so now I use this solution in similar situations.

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

Sidebar

Related Questions

How can I bind my object collection to CheckedListBox items with IsChecked property? Here
I've got a collection of ViewModels and want to bind a ListBox to them.
I have one observable collection with user control. And I am bind it in
I use Caliburn micro for my WPF Project. Static menus are easy to bind
How can I write Binding from XAML in my code to bind my collection
I would like to bind a list control (like a ListView) in a view
Suppose we have a DataSource bind to a collection from Database. There is no
I have a view that render itself from a Collection: render: function() { $(this.el).html(JST['templates/menu']({collection:
I'm trying to learn MVVM with Caliburn.Micro. My exercise is to have a view
I sort and group listbox items, I use CollectioView on this purpose. From view

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.