Skip to content

Instantly share code, notes, and snippets.

@yinyue200
Created July 22, 2017 23:30
Show Gist options
  • Save yinyue200/6a1fdfc40dcfef782af8d634c1268ac4 to your computer and use it in GitHub Desktop.
Save yinyue200/6a1fdfc40dcfef782af8d634c1268ac4 to your computer and use it in GitHub Desktop.
//*********************************************************
//
// Copyright (c) yinyue200.com. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
public static class PivotPageHelper
{
public static void Dispose(this Yinyue200.Controls.PivotPage.PivotPage page)
{
#if ANDROID
foreach(var one in page.Views)
{
var renderer = Platform.GetRenderer(one);
if (renderer != null)
{
renderer.View.RemoveFromParent();
}
}
#endif
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment