summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-06-29 13:07:21 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 11:11:28 +0900
commitd225cdbe5a7879ad5fd8b9ab553ac3918928a70f (patch)
tree2558a9dcd91f8bdf839bcdbe7832dc8c43e1c8ce /Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
parent92c44dc97f1d467e123ce076e3ffed953fe7cddb (diff)
downloadxamarin-forms-d225cdbe5a7879ad5fd8b9ab553ac3918928a70f.tar.gz
xamarin-forms-d225cdbe5a7879ad5fd8b9ab553ac3918928a70f.tar.bz2
xamarin-forms-d225cdbe5a7879ad5fd8b9ab553ac3918928a70f.zip
Refactoring Renderers
- Apply Dispose pattern - Handle IBatchable interface on VisualElementRenderer - Make pair Event subscribe/unsubscribe Change-Id: I65018652132494722d52b1d62798f1cf1f6fc6fd
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
index 8fe97a72..cd2f45d4 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ProgressBarRenderer.cs
@@ -10,14 +10,9 @@ namespace Xamarin.Forms.Platform.Tizen
{
protected override void OnElementChanged(ElementChangedEventArgs<ProgressBar> e)
{
- if (base.Control == null)
- {
- var progressBar = new EProgressBar(Forms.Context.MainWindow);
- SetNativeControl(progressBar);
- }
-
- if (e.OldElement != null)
+ if (Control == null)
{
+ SetNativeControl(new EProgressBar(Forms.Context.MainWindow));
}
if (e.NewElement != null)