private void OnToolbarItemSelected(object sender, ToolbarItemSelectedEventArgs e)
        {
            string text = string.Empty; //e.ToolbarItem.Name;

            if (text != "back")
            {
                if (e.ToolbarItem is FooterToolbarItem)
                {
                    text = e.ToolbarItem.Text;
                    e.MoveSubItemsToFooterToolbar = true;
                }
                else if (e.ToolbarItem is CustomToolbarItem)
                {
                    text = (e.ToolbarItem as CustomToolbarItem).CustomName;
                }
                else
                {
                    text = e.ToolbarItem.Text;
                }

                if (text == "Replace")
                {
                    isReplaced = true;
                    //imageEditor.ToolbarSettings.FooterToolbarHeight = 70;
                }
                else if (text == "back")
                {
                    isReplaced = false;
                    //imageEditor.ToolbarSettings.FooterToolbarHeight = 50;
                }
                else if (text == "Add")
                {
                    isReplaced = false;
                    //imageEditor.ToolbarSettings.FooterToolbarHeight = 70;
                }
                if (isReplaced && imageEditor.IsSelected && (text == "Typogy1" ||
                                                             text == "Typogy2" || text == "Typogy3" || text == "Typogy4" || text == "Typogy5" || text == "Typogy6"))
                {
                    imageEditor.Delete();
                    AddImage(text);
                }
                else if (text == "Typogy1" ||
                         text == "Typogy2" || text == "Typogy3" || text == "Typogy4" || text == "Typogy5" || text == "Typogy6")
                {
                    AddImage(text);
                }
                if (text == "Bring Front")
                {
                    imageEditor.BringToFront();
                }
                else if (text == "Send Back")
                {
                    imageEditor.SendToBack();
                }
            }
            else
            {
                isReplaced = false;
            }
        }