Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisplayMemberPath not work when ComboBox items binded to DependencyObject #8502

Closed
ACGNnsj opened this issue May 24, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ACGNnsj
Copy link

ACGNnsj commented May 24, 2023

Describe the bug

The text of dropdown menu is empty.

Steps to reproduce the bug

Here's the definitions of binded items.
LanguageItem.idl LanguageItem.h LanguageItem.cpp
The items have been used here.
ConfigPage.xaml ConfigPage.xaml.cpp

Expected behavior

The properties setted in DisplayMemberPath displayed properly

Screenshots

image
image
These outputs seem to be common exceptions of some controls.

NuGet package version

WinUI 3 - Windows App SDK 1.3.1: 1.3.230502000

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

@ACGNnsj ACGNnsj added the bug Something isn't working label May 24, 2023
@ACGNnsj
Copy link
Author

ACGNnsj commented May 30, 2023

I misused Items instead of ItemsSource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant