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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:06:45+00:00 2026-05-27T02:06:45+00:00

Im making a user selection userControl for my WPF C# project. I did make

  • 0

Im making a user selection userControl for my WPF C# project.
I did make a custom autocomplete control for the selection but for optimization purposes im now looking into using the AutoComplete textbox from the WPF Toolkit.

Since ive got thousands of users in the DB i dont want to use custom classes or to many foreach on the lists im retrieving. So with that in mind here is my problem.

var list = from cu in conn3.customer_users
select new  {
              username    =  cu.username,
             name        =  cu.fname.TrimEnd() + " " + cu.lname.TrimEnd()
                 // This would of course be built with more info from more entities. 

             };

            this.autoComplete.ItemsSource = list.ToList();

Now the problem here is that it outputs the following format for the result box (On a search).

{ username = DEI1231 , name = Missy Anderson }

So i dont want to foreach the list but rather format it as i bind it or as i make the list.

Any ideas?

  • 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-27T02:06:46+00:00Added an answer on May 27, 2026 at 2:06 am

    I didn’t want to hassle more with the beginning space and finally made a decition to just allow the initial space and just strip all spaces from the Meta string eventually anyhow.

    The problem actually turns out to be in the event it self so this was by solution for the being. Im not looking anything more into this since in turning over to meta with tags inside the actual message instead. And with a prefix. Eg. @meta
    Lets see how that works 😉

     private string metaInput { get; set; }
        public string MetaInput 
        {
            get
            {
                return metaInput;
            }
    
            set 
            {
                string x = value;
                if (x.Length > 3)
                {
                    if (x.EndsWith(" "))
                    {
    
                    string z = x.Replace(" ", "");
                    x = z.Replace(",", "");
                    int l = x.Length;
    
                        if (l > 2)
                        {
                            metaInput = null;
                            SaveMetaWord(x);
                        }
    
                        else 
                        {
                            metaInput = null;
                        }
                    }
    
                }
    
                else 
                {
                    metaInput = value;
                }
    
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a user control, and I manually draw the text string, but I
I am going to be making a small user system but I have questions.
I'm writing a custom file selection component. In my UI, first the user clicks
I'm making an extension that gets the user current selection, uses it to change
Hey, I'm making a simple user friendly css editor using Prototype. Anyway, I was
I'm making a program which the user build directories (not in windows, in my
I'm making a small tool application that user can minimize in the taskbar .
I'm making a page where the user upload a file. I want an if
I am making an application which is a user interface to access 2 types
I'm making a php web application which stores user specific information that is not

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.