private void mctl_Tapped(object sender, TappedRoutedEventArgs e)
        {
            //MainPage mainpage = (MainPage)App.GetParentByName(this, "MainPage");
            //navigate to the proper page index on the flipview
            MapItemControl mi = (MapItemControl)sender;

            MainPage.Current.Flipper.SelectedIndex = mi.PageIndex;
        }
        public void ReorderRight(int page)
        {
            MapItemControl m = (MapItemControl)stacker.Children[page];

            stacker.Children.RemoveAt(page);
            stacker.Children.Insert(page + 1, m);
            RebuildNumbering();
        }
        public void AddItem(int pageIndex, string imageFileName)
        {
            MapItemControl mctl = new MapItemControl();

            mctl.PageIndex = pageIndex;
            mctl.SetSource(App.ImageFromRelativePath(this, imageFileName));
            mctl.Tapped += mctl_Tapped;
            stacker.Children.Add(mctl);
        }