dotnet / dotnet/wpf

ComboBox ToggleButton layout breaks when used inside a DataGrid

Open
#11,362 1 comment 2 reactions 0 assignees View on GitHub
Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

When a ComboBox is placed inside a DataGrid cell, the layout of its ToggleButton becomes misaligned and does not render correctly.

Image

Image

### Reproduction Steps

there is a repo to reproduce

[WpfApp1.zip](https://github.com/user-attachments/files/24644358/WpfApp1.zip)

then do like that
https://github.com/user-attachments/assets/8b5da088-b63c-41ef-98ef-a66199c78c77

### Expected behavior

ToggleButton of the combobex should be in the right

### Actual behavior

ToggleButton of the combobex shown in the center of the combobox as show in the pictures and videos

### Regression?

_No response_

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

.Net 10
Windows 11
Any

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.