BorderStyleLeak.Maui

Simple MAUI app (8.0.6) demonstrating a memory leak that occurs when a StrokeShape is applied to a Border control via a global style. This leak cascades to the page level.

Note that the only difference between LeakyPage and SafePage is that LeakyPage uses the global style to apply a StrokeShape value, while SafePage assignes the same exact value explicitly (so overriding the global style).

It's also noteworthy that the OOTB MAUI template creates a global Border style with the StrokeShape set, so all MAUI apps created with the standard solution template will have this page-level cascading leak unless the global style is removed or StrokeShape is explicitly set.