private void HomeTypeButton_Clicked(object sender, EventArgs e)
        {
            ImageButton ib = (ImageButton)sender;
            ImageButton typeSelectorButton = (ImageButton)ib.Parent.Parent.Parent.Parent;
            Phone       phone = typeSelectorButton.BindingContext as Phone;
            RadPopup    popup = typeSelectorButton.FindByName <RadPopup>("PhoneTypePopup");

            popup.IsOpen = false;

            if (phone != null)
            {
                UpdateViewTypeHelper(typeSelectorButton, phone, Phone.Type.HOME); return;
            }

            Email email = typeSelectorButton.BindingContext as Email;

            if (email != null)
            {
                UpdateViewTypeHelper(typeSelectorButton, email, Email.Type.PERSONAL); return;
            }

            Address address = typeSelectorButton.BindingContext as Address;

            if (address != null)
            {
                UpdateViewTypeHelper(typeSelectorButton, address, Address.Type.PERSONAL); return;
            }
        }
        private void TypeSelectorButton_Clicked(object sender, EventArgs e)
        {
            ImageButton phoneType = (ImageButton)sender;
            RadPopup    popup     = phoneType.FindByName <RadPopup>("PhoneTypePopup");

            popup.IsOpen = true;
        }