Skip to content

Commit

Permalink
[Tizen] Improve the SwitchCell performance (xamarin#10952)
Browse files Browse the repository at this point in the history
  • Loading branch information
rookiejava authored Jun 5, 2020
1 parent 173803d commit 23356e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Xamarin.Forms.Platform.Tizen/Cells/SwitchCellRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ protected override EvasObject OnGetContent(Cell cell, string part)
{
nativeView.PropagateEvents = false;
}

_cacheCandidate[nativeView] = toggle;
nativeView.Deleted += (sender, e) =>
{
_cacheCandidate.Remove(sender as EvasObject);
};

return nativeView;
}
return null;
Expand Down

0 comments on commit 23356e4

Please sign in to comment.