HandyOrg / HandyOrg/HandyControl

CheckComboBox Itemtemplate isn't being applied when an item is selected

Open
#1,643 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When a CheckComboBox is given an ItemTemplate it is used in the dropdown but when an item is selected it then uses the ToString() instead of the ItemTemplate.

Steps to reproduce the bug
  1. Create a class which does not have any ToString() implementation
  2. Create a CheckComboBox using this class
  3. See bug
Expected behavior

Expected behavior was that the ItemTemplate would apply to the dropdown and selected items.

Screenshots

image
image
image

NuGet package version

3.5.1

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22000)

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the CheckComboBox control and inspect how its ItemTemplate is applied in the dropdown versus the selected-item display. Reproduce the issue with a class that has no ToString() implementation, then verify that the template is used in both locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.