Open suugbut opened 1 month ago
looks like a layout issue, could you please add a small repro project for us to work on ? thanks
@StephaneDelcroix Thank you. Here is the repo: https://github.com/suugbut/CustomControlBugReport
The affected platforms that I have tested: Windows and Android.
This issue has been verified using Visual Studio 17.12.0 Preview 3(8.0.92& 8.0.80 & 8.0.3 &7.0.101). Can repro this issue on android and windows platforms.
Description
For illustration, use the following minimal code.
I have two custom controls:
PersonControl
(working) andAddressControl
(not working).I skip their corresponding code behind files because they only contain a constructor with
InitializeComponent()
calls.These controls are used in
MainPage
.Using
PersonControl
(working)Using
AddressControl
(not working)Steps to Reproduce
MainPage.xaml
with my code given above. Also remove the irrelevant code inMainPage.xaml.cs
.Person
andAddress
models and custom controlsPersonControl
andAddressControl
as shown above.Version with bug
Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility version 8.0.1 and 8.0.91. I did not test other version between these two boundaries.
Is this a regression from previous behavior?
Not sure because I did not test for other versions 6 and 7.
Last version that worked well
Unknown/Other
Affected platforms
Windows and Android. I was not able test on other platforms
Affected platform versions
Did you find any workaround?
Wrap the
AddressControl
with a layout control, for exampleVerticalStackLayout
.Relevant log output
No response