зеркало из https://github.com/DeGsoft/maui-linux.git
* Fixed problem disposing childs navigating back * Fixed text format
This commit is contained in:
Родитель
b25ca40edb
Коммит
9ffa2f12c7
|
@ -1,5 +1,6 @@
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using Xamarin.Forms.Internals;
|
using Xamarin.Forms.Internals;
|
||||||
using Xamarin.Forms.Platform.GTK.Extensions;
|
using Xamarin.Forms.Platform.GTK.Extensions;
|
||||||
|
@ -90,6 +91,13 @@ namespace Xamarin.Forms.Platform.GTK.Renderers
|
||||||
{
|
{
|
||||||
if (_appeared)
|
if (_appeared)
|
||||||
{
|
{
|
||||||
|
ReadOnlyCollection<Element> children = ((IElementController)Element).LogicalChildren;
|
||||||
|
for (var i = 0; i < children.Count; i++)
|
||||||
|
{
|
||||||
|
var visualChild = children[i] as VisualElement;
|
||||||
|
visualChild?.Cleanup();
|
||||||
|
}
|
||||||
|
|
||||||
Page.SendDisappearing();
|
Page.SendDisappearing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче