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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:02:15+00:00 2026-06-01T07:02:15+00:00

What I am looking for: All selected items to be shown on top. Problem:

  • 0

What I am looking for:

  1. All selected items to be shown on top.

Problem:

  • I have a custom incremental search control that populate the dropdown on incremental pattern. In the dropdown popup I have a ListView with ItemsSource set to a collection of unknown type. SelectionMode is Multiple.

  • ItemsSource is IsReadOnly

I need a solution to move the SelectedItem on top whenever a selection is made.

  • 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-01T07:02:17+00:00Added an answer on June 1, 2026 at 7:02 am

    For me to solve this problem, there are various methods.

    1) To implement the selectedindexchanged event in the listview. when the event is called, check all the items and move slected items to the top.

    2) create a class inheriting from e.g. observablecollection. bind the selected property of the listview to a bool property of the objects in the collection(checkobject). When the bool property (of checkobject) changes (using propertychanged event), shift the object to the front (behind those that have bool = true). This way, you could keep the implementation in the collection class.

    3) If the collection is readonly, a sort by the bool property can be used. However, this means that the object needs to be known

    4) If the collection is unknown a custom sort can be used. One references is “Apply a custom sort rule to a wpf datagrid”

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

Sidebar

Related Questions

Suppose I have a search screen that is intended for looking up items. There
I've been looking all over for a simple example of how to have an
So, I've been looking all over. I can't find anywhere that talks about specifically
I am facing a situation that I have problem understanding... I am writing a
I have simple SL user control. A listbox which shows all customers and on
I am trying to grab all selected items in the following select multiple and
i'm looking for a way to display a menu block with a custom selected
I have asp.net checkboxlist control that bounded to a data source so the number
I've been looking all over the internet for a solution to the following error;
I was looking all over and couldn't get a direct and clear answer. 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.