public static String ShowDialog(String title, String header, String info, ImageSource icon,
                                        SkinBundle bundle, Func <String, bool> validatePassword)
        {
            PasswordChangeDialogEx dlg = new PasswordChangeDialogEx(validatePassword, bundle)
            {
                Title = title,
                hInfo =
                {
                    HeaderContent   = header,
                    DescriptionText = info
                }
            };

            if (icon != null)
            {
                dlg.hInfo.IconSource = icon;
            }
            if (bundle != null)
            {
                bundle.SetBundle(dlg);
            }

            if (dlg.ShowDialog().GetValueOrDefault(false))
            {
                return(dlg.txtNewPassword.Password);
            }
            else
            {
                return(null);
            }
        }
        public static String ShowDialog(String title, String header, String info, ImageSource icon,
            SkinBundle bundle, Func<String, bool> validatePassword)
        {
            PasswordChangeDialogEx dlg = new PasswordChangeDialogEx(validatePassword, bundle)
                {
                    Title = title,
                    hInfo =
                        {
                            HeaderContent = header,
                            DescriptionText = info
                        }
                };
            if (icon != null)
                dlg.hInfo.IconSource = icon;
            if (bundle != null)
            {
                bundle.SetBundle(dlg);
            }

            if (dlg.ShowDialog().GetValueOrDefault(false))
                return dlg.txtNewPassword.Password;
            else
                return null;
        }