© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
Pandetthe

Wpf combobox problem

Hi! I came across an interesting problem today and I don't know how to overcome it. I have ObservableCollection<CustomWindow> where CustomWindow is including Window class and has public string property Example. I am using it as an ItemSource for combobox with DisplayNamePath="Example". Dropdown list is being displayed correctly but after selecting any option from it, selection box is still empty and I get System.Windows.Data Error: 40 : BindingExpression path error: 'Example' property not found on 'object' ''Frame' (Name='ViewControl')'. BindingExpression:Path=Example; DataItem='Frame' (Name='ViewControl'); target element is 'TextBlock' (Example=''); target property is 'Text' (type 'String')
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Wpf combobox
C#CC# / help
2y ago
❔ Binding WPF Combobox
C#CC# / help
3y ago
❔ WPF Problem
C#CC# / help
3y ago
Textblock is overlapping with combobox items (WPF)
C#CC# / help
2y ago