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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:48:35+00:00 2026-06-01T01:48:35+00:00

I have a ListBox in a Silverlight Application. I’m trying to make an editable

  • 0

I have a ListBox in a Silverlight Application. I’m trying to make an editable listbox, so I use an ItemTemplate to have the controls i need in each item, like a textBox and buttons, and its working fine.

I’d like to have a line at the end of the Listbox with a button to add new items. Since this item won’t be related to any of my domain classes, I’m using a plain object as a ‘Filler’, and then I have code that identify this item to show the button correctly.

myListBox.Items.add(new object());

The problem is that I want this “new Record” item to be kept always at the end of listbox, so when I need to insert a new domain record, i use this code:

myListBox.Items.Insert(myListBox.Items.Count - 1, domainItem);

When I debug the myListBox.Items collections, it is in the right order, with the “add new” button at the end, but the listbox is displaying this button at the beggining. Why are my items beeing displayed in a different order than the Items 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-06-01T01:48:37+00:00Added an answer on June 1, 2026 at 1:48 am

    Unless there is a specific reason, instead of trying to put the button into the listbox collection itself you would be best to create a new control with the button outside and below the listbox. You can always style the button to look as though it’s within the listbox if required.

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

Sidebar

Related Questions

I have a ListBox in Silverlight that has a list of items inside. Each
In Silverlight, I have a Vertical ListBox that has a Horizontal ListBox for each
I have xaml that lookes like this <ListBox> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text={Binding Name}
I am developing silverlight application. I have a listbox in my application. I am
I have a silverlight mvvm application that loads main view with 2 user controls
I have a ListBox so I can use bindings. I'm new to Silverlight so
in my Silverlight 4 application I have a listbox for which I created an
in my Silverlight 4 application, I have a listbox for which I created a
I have a Silverlight application that has a ListBox of a specific width. I
How can I make a silverlight listbox have all items be the same size

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.