Support new features of Tizen.CircularUI (#188)
[platform/core/csapi/xsf.git] / src / XSF / Tizen.Wearable.CircularUI.Forms / CirclePage.cs
index dbf3c4c..77c8668 100644 (file)
  * limitations under the License.
  */
 
-using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Collections.Specialized;
+using System.ComponentModel;
 using Xamarin.Forms;
 
 namespace Tizen.Wearable.CircularUI.Forms
@@ -62,6 +62,9 @@ namespace Tizen.Wearable.CircularUI.Forms
                /// <since_tizen> 4 </since_tizen>
                public IList<ICircleSurfaceItem> CircleSurfaceItems { get; }
 
+               [EditorBrowsable(EditorBrowsableState.Never)]
+               public bool Appeared { get; set; }
+
                /// <summary>
                /// Gets or sets ActionButton that presents a menu item and associates it with a command
                /// </summary>
@@ -92,6 +95,18 @@ namespace Tizen.Wearable.CircularUI.Forms
                        }
                }
 
+               protected override void OnAppearing()
+               {
+                       base.OnAppearing();
+                       Appeared = true;
+               }
+
+               protected override void OnDisappearing()
+               {
+                       base.OnDisappearing();
+                       Appeared = false;
+               }
+
                void OnSurfaceItemsChanged(object sender, NotifyCollectionChangedEventArgs args)
                {
                        if (args.Action != NotifyCollectionChangedAction.Add) return;