Created
July 22, 2017 23:30
-
-
Save yinyue200/6a1fdfc40dcfef782af8d634c1268ac4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//********************************************************* | |
// | |
// 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