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 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

If I want to bind a collection to a some form of listing control
I want to get my ComboBox in XAML to bind to my List collection
Suppose we have a DataSource bind to a collection from Database. There is no
I am using C++ on Linux. I want to dynamically bind a collection of
I want to bind my UI against a collection of XElements and their properties
I am currently trying to bind a collection of objects to a Canvas in
In our SL4 application built on Caliburn.Micro, we've come across a (another) memory leak.
I have a problem with getting selected objectfrom my list. I bind collection of
I bind a collection ObservableCollection<Foo> to a dependency property on my controller, but I
I have a collection ObservableCollection<Foo> , and I want to bind this to a

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.