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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:18:50+00:00 2026-05-27T23:18:50+00:00

Love the new Implicit Data Templates, but I’ve just run into a problem with

  • 0

Love the new Implicit Data Templates, but I’ve just run into a problem with them.

My ComboBox is picking a DataTemplate which matches the ItemsSources type instead of following my DisplayMemberPath settings. Is there a way to tell the control to not look for DataTemplates?

     <ComboBox DisplayMemberPath="DTO.Name" SelectedValue="{Binding DefaultModifierGroup, Mode=TwoWay}" 
ItemsSource="{Binding MenuRepository.ModifierGroups, Source={StaticResource Locator}}"/>
  • 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-27T23:18:51+00:00Added an answer on May 27, 2026 at 11:18 pm

    I think you can’t use DisplayMemberPath anymore. You probably need to created new data template inside that combobox.

    <UserControl x:Class="SilverlightApplication1.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        xmlns:local="clr-namespace:SilverlightApplication1"
        d:DesignHeight="300" d:DesignWidth="400">
        <UserControl.Resources>
            <DataTemplate DataType="local:Person">
                <TextBlock Text="{Binding Address}" />
            </DataTemplate>
        </UserControl.Resources>
        <Grid x:Name="LayoutRoot" Background="White">
            <StackPanel>
                <ListBox ItemsSource="{Binding Items}" />
                <ListBox ItemsSource="{Binding Items}" >
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
        </Grid>
    </UserControl>
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    
    namespace SilverlightApplication1 {
        public partial class MainPage : UserControl {
            public MainPage() {
                this.DataContext = this;
                InitializeComponent();
    
                Items = new List<Person>{
                    new Person() { Name ="Name1", Address ="Address1" },
                    new Person() { Name ="Name2", Address ="Address2" },
                    new Person() { Name ="Name3", Address ="Address3" }
                };
    
            }
    
            public IList<Person> Items { get; set; }
    
        }
    
        public class Person {
            public string Name { get; set; }
            public string Address { get; set; }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am new to objective-c and xcode, and i love programming with them. But am
I love the new DATE datatype in SQL Server 2008, but when I compare
I used to love using IntelliJ but my new company doesn't spend money on
I'm fairly new (ok, REALLy new) to generics but I love the idea of
I'm looking at using ASP.NET for a new SaaS service, but for the love
This is a general question, but I'd love some feedback. I'm new to working
I love Eclipse's quickfixes. I use the assign parameter to new field often, but
I know that I can use WebCharts3d to create new styles, but I'd love
I'm quite new to Cocoa Bindings, but I've seen enough that I'd love to
New to java, but would love to implement my working jsp that generates xml

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.