HandyOrg / HandyControl

Contains some simple and commonly used WPF controls
https://handyorg.github.io/
MIT License
6.01k stars 1.02k forks source link

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

Open HuygheDaphne-Marie opened 1 week ago

HuygheDaphne-Marie commented 1 week ago

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