public override void OnDestroy() { _mauiContext .GetDispatcher() .Dispatch(Dispose); base.OnDestroy(); }