static List<EditfieldEntry> editfieldEntrys = new List<EditfieldEntry>();
static List<Canvas> canvases = new List<Canvas>();
static List<Page> pages = new List<Page>();
+ static List<IndicatorView> indicatorViews = new List<IndicatorView>();
static Dictionary<CircleSurface, Watch.WatchListView> watchListviews = new Dictionary<CircleSurface, Watch.WatchListView>();
static Dictionary<CircleSurface, Watch.WatchScroller> watchScrollers = new Dictionary<CircleSurface, Watch.WatchScroller>();
const int hfrequency = 20;
var editfield = new EditfieldEntry(preloadedWindow.Window);
editfield.Hide();
editfieldEntrys.Add(editfield);
+
+ var indicatorView = new IndicatorView(preloadedWindow.Window);
+ indicatorView.Hide();
+ indicatorViews.Add(indicatorView);
}
var listview = new Watch.WatchListView(preloadedWindow.Window, preloadedWindow.BaseCircleSurface);
}
return new Page(Forms.NativeParent);
}
+ else if (type == typeof(IndicatorView))
+ {
+ if (indicatorViews.Count >= 1)
+ {
+ IndicatorView native = indicatorViews[indicatorViews.Count - 1];
+ indicatorViews.Remove(native);
+ return native;
+ }
+ return new IndicatorView(Forms.NativeParent);
+ }
else if (type == typeof(Watch.WatchListView))
{
if (watchListviews.ContainsKey(surface))
}
pages.Clear();
+ foreach (var native in indicatorViews)
+ {
+ native.Unrealize();
+ }
+ indicatorViews.Clear();
+
foreach (var item in watchListviews)
{
item.Value.Unrealize();
{
if (Control == null)
{
- SetNativeControl(new Native.IndicatorView(Forms.NativeParent));
+ var native = Native.NativeFactory.GetNativeControl(typeof(Native.IndicatorView)) as Native.IndicatorView;
+
+ if (Device.Idiom == TargetIdiom.Watch)
+ native.Style = "circle";
+
+ SetNativeControl(native);
}
if (e.NewElement != null)
{