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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:10:01+00:00 2026-06-16T10:10:01+00:00

I have a list item data template that contains a textbox and a combobox.

  • 0

I have a list item data template that contains a textbox and a combobox.

I’ve two way databound the textbox to a public string property in the list item, but I want to be able to bind the combobox to an enum and display their public friendly versions in the combobox items and maintain the two way binding ability.

I’m still pretty new to the whole concept of databinding, and components of MVVM, but i’m picking it up fairly quickly. I’ve had a look around for similar requests however haven’t been able to find suitable answers or anything I can understand / manipulate to work correctly.

Any help is greatly appreciated.

  • 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-16T10:10:02+00:00Added an answer on June 16, 2026 at 10:10 am

    This blog post should help you out! Effectively you need a enum converter.

    To convert an enum to a list use the following code:-

    var colors = typeof(Colors).GetTypeInfo().DeclaredProperties;
    foreach (var item in colors)
    {
       cbBorderColor.Items.Add(item);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF listbox and have updated the list item data template to
I have a list of data that is a schedule. Each item has a
I have two list views, a parent that contains a child list view with
I have a listbox in which the item source contains a List(of T) that
I have some templates that look roughly like this: <template name=items> <div class=item-list> {{#each
I have a ComboBox in WPF which is databound, and has data template which
I have a List item List<string> xmlValue = new List<string>(); In this I have
I have a list of two-item lists and need to search for things in
I have a data class that I want to show in a list on
I have a list view that is displaying data using the gridview. This list

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.