You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platform
In Android and Wasm any custom class implementing ComboBox is not rendered.
Expected behavior
ComboBox should render as on UWP.
How to reproduce it (as minimally and precisely as possible)
Start the attached solution in UWP and observe the red combobox. Launch in Android and Wasm and observe that the combobox is not drawn. ComboboxAndroid.zip
@DierkDroth this PR is still in the works, with lots of validation left to do. Most of the issues fixed by this PR can be worked around with some additional styling that is compatible with the normal behavior of WinUI.
@peternary you need to redefine the style completely, not just parts of it. This is something that the mentioned PR will also address. For the ComboBox, take a complete copy of the original style. Best is to place the style in a ResourceDictionary referenced from App.xaml.
kind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformplatform/wasm 🌐Categorizes an issue or PR as relevant to the WebAssembly platform
Activity
jeromelaban commentedon Dec 27, 2019
This is issue is related to #1766, where the
DefaultStyleKeyis not taken into account.For an inherited control to work, you need to define either an implicit style or a named style for your new control type.
DierkDroth commentedon Dec 27, 2019
@jeromelaban any chance to get the PR referenced merged?
peternary commentedon Dec 27, 2019
I've tried creating a named style and assigning it but that doesn't appear to be working. Sample attached
ComboboxAndroid_with_style.zip
jeromelaban commentedon Dec 27, 2019
@DierkDroth this PR is still in the works, with lots of validation left to do. Most of the issues fixed by this PR can be worked around with some additional styling that is compatible with the normal behavior of WinUI.
@peternary you need to redefine the style completely, not just parts of it. This is something that the mentioned PR will also address. For the
ComboBox, take a complete copy of the original style. Best is to place the style in aResourceDictionaryreferenced fromApp.xaml.