unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.81k stars 708 forks source link

Dropdown elements font render incorrect of DataGridComboBoxColumn in DataGrid #11308

Open zhongjohnson opened 1 year ago

zhongjohnson commented 1 year ago

Current behavior

The elements in the DataGridComboBoxColumn renders incorrect

image

Expected behavior

Expecting it can use the same font of DataGrid and render correctly.

How to reproduce it (as minimally and precisely as possible)

    <controls:DataGrid x:Name="dataGrid"
                       FontFamily="{x:Bind ViewModel.PreferredFontFamily}">
        <controls:DataGrid.Columns>
            <controls:DataGridTextColumn  />
            <controls:DataGridComboBoxColumn 
                                             FontFamily="{x:Bind ViewModel.PreferredFontFamily}" />
            <controls:DataGridTextColumn  />
        </controls:DataGrid.Columns>
    </controls:DataGrid>

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

Uno.WinUI.Skia.Wpf 4.6.19

Affected platforms

Skia (WPF)

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

MartinZikmund commented 1 year ago

May be duplicate of #10801

Youssef1313 commented 11 months ago

@MartinZikmund While fixing #10801 will make this issue goes away, we really should make sure if it's the right root cause.

I'd prefer that we add the test @jeromelaban tried to add in #11330 (commit https://github.com/unoplatform/uno/pull/11330/commits/ce3b30a2095d6467e861588693ad69dff1a2091b), and make sure it's passing on Windows, then make sure it's also passing in Uno.