unoplatform / uno.toolkit.ui

A set of custom controls for the WinUI and the Uno Platform not offered out of the box by WinUI, such as Card, TabBar, NavigationBar, etc.
https://platform.uno/
MIT License
82 stars 26 forks source link

SafeArea Top does not work on DrawerControl's DrawerContent #1193

Open yeahg-dev opened 1 month ago

yeahg-dev commented 1 month ago

Current behavior

DrawerControl's DrawerContent Can not reflect SafeArea Top when shown. SafeArea applies only after pressing the button.

https://github.com/user-attachments/assets/8b4e92ef-7ec2-42e3-9251-28175fe7750c

Expected behavior

SafeArea Top should be applied on first show.

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

I used Custom Content Control class BottomSheet as DrawerContent. Here is sample project.

DrawerControlSafeAreaTest 2.zip

Nuget Package:

Package Version(s):

Affected platform(s):

IDE:

Relevant plugins:

Anything else we need to know?

No Response

kazo0 commented 1 month ago

@yeahg-dev thanks for the report and the attached repro sample! This will help a lot to test, we will look into it!