Esempio n. 1
0
        /// <summary>
        /// Does the actual work of creating the dialog. Override this to create custom dialogs.</summary>
        /// <param name="content">The content to display</param>
        /// <returns>The created dialog</returns>
        public virtual IDialogContentHost CreateDialog(IDialogContent content)
        {
            var dialog = new CommonDialogHost();

            dialog.Content = content;
            content.Host   = dialog;
            return(dialog);
        }
Esempio n. 2
0
 /// <summary>
 /// Does the actual work of creating the dialog. Override this to create custom dialogs.</summary>
 /// <param name="content">The content to display</param>
 /// <returns>The created dialog</returns>
 public virtual IDialogContentHost CreateDialog(IDialogContent content)
 {
     var dialog = new CommonDialogHost();
     dialog.Content = content;
     content.Host = dialog;
     return dialog;
 }