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

Issue occurs for custom control that was inherited from ComboBoxItem #9620

Closed
Jothika4341 opened this issue May 9, 2024 · 3 comments
Closed
Labels
area-ComboBox bug Something isn't working team-Controls Issue for the Controls team

Comments

@Jothika4341
Copy link

Jothika4341 commented May 9, 2024

Describe the bug

When creating a custom control that was inherited from ComboBoxItem , Facing issue in selecting the item in which the selected item is not properly binded in the custom control when the isEditable Property is True

Steps to reproduce the bug

Sample: SampleCustomControlWinUI.zip

1.Run the sample that has been attached
2.Click the Custom control which is a Combo Box.

Note: Selected item not properly binded.

Expected behavior

Selected Item should be properly binded when the isEditable property sets to true

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@Jothika4341 Jothika4341 added the bug Something isn't working label May 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 9, 2024
Copy link

github-actions bot commented May 9, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@codendone codendone added area-ComboBox team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels May 10, 2024
@ranjeshj
Copy link
Contributor

@Jothika4341 you can try overriding ToString on your custom control.

@Jothika4341
Copy link
Author

@ranjeshj, Tried by overriding ToString , it works. Thank you.

@microsoft-github-policy-service microsoft-github-policy-service bot added needs-triage Issue needs to be triaged by the area owners and removed needs-author-feedback Asked author to supply more information. labels Jun 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ComboBox bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants