Cascade ISafeAreaView.IgnoreSafeArea #24393
-
For some reason I've not seen any threads related to cascading Maybe I'm missing something, but to get a parent layout and any of its children to ignore safe area I have to do the following. <Grid IgnoreSafeArea="True">
<Grid IgnoreSafeArea="True">
<Label Text="Hello!" />
</Grid>
<Grid IgnoreSafeArea="True">
<Label Text="Hello 2!" />
</Grid>
</Grid> There's got to be a better way of doing this like the ability to set it via a Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Report both issues and wait 5+ years for them to get fixed? 😛 The IgnoreSafeArea changes have been broken since they were introduced along with Page UseSafeArea. Whomever wrote them was probably drunk at the time. But to make matters worse the issues have been ignored for nearly 3/4 year now. I've actually just ran into this myself today and stumbled upon your question while researching solutions. Short of waiting, adding the property everywhere or building/patching maui yourself, I've come up with 2 tenable solutions:
I've tested both options and so far they seem to work fine, but the attached property way would be easily overridable if you need to do in some places. To do the same with the handler, you would probably have to create an attached property to disable the override which you could check in the handler, but then you might as well just go with the style way. |
Beta Was this translation helpful? Give feedback.
Report both issues and wait 5+ years for them to get fixed? 😛
The IgnoreSafeArea changes have been broken since they were introduced along with Page UseSafeArea. Whomever wrote them was probably drunk at the time. But to make matters worse the issues have been ignored for nearly 3/4 year now.
I've actually just ran into this myself today and stumbled upon your question while researching solutions. Short of waiting, adding the property everywhere or building/patching maui yourself, I've come up with 2 tenable solutions: