public void Show(
                     ViewFactoryContent control,
                     PromptButtonConfiguration buttonConfiguration = PromptButtonConfiguration.YesNoCancel,
                     DialogSize sizeMode = DialogSize.Fill)
 {
     Dialog.Show(
                     myContent,
                     result => Output.Write("Callback - OnComplete: " + result),
                     sizeMode: sizeMode,
                     buttonConfiguration: buttonConfiguration);
 }
示例#2
0
        public Dialog Size(DialogSize value)
        {
            switch (value)
            {
            case DialogSize.Small:
                size = " bs-example-modal-sm";
                break;

            case DialogSize.Large:
                size = " bs-example-modal-lg";
                break;

            case DialogSize.Normal:
                size = " ";
                break;
            }
            return(this);
        }
        public bool Show(
                        IViewFactory content, 
                        Action<PromptResult> onComplete, 
                        DialogSize? sizeMode, 
                        PromptButtonConfiguration? buttonConfiguration)
        {
            // Setup initial conditions.
            if (IsShowing) return false;
            if (content == null) throw new ArgumentNullException("content");

            // Update state.
            if (sizeMode != null) SizeMode = sizeMode.Value;
            if (buttonConfiguration != null) Buttons.Configuration = buttonConfiguration.Value;
            onShowComplete = onComplete;

            // Insert content.
            if (Content != content) Content = content;
            IsShowing = true; // Reveal the dialog.

            // Finish up.
            return true;
        }
 public bool?ShowDialog(string title, object content, DialogSize dialogSize = DialogSize.SizeToContent, MessageBoxButton buttons = MessageBoxButton.OKCancel, MessageBoxResult defaultButton = MessageBoxResult.OK, ICommand[] buttonCommands = null)
 {
     throw new NotImplementedException();
 }
 public IWaitDialog CreateWaitDialog(string title, string message, DialogSize dialogSize = DialogSize.SizeToContent, TimeSpan?delayShow = null, Func <Tuple <bool, string> > onCancel = null)
 {
     throw new NotImplementedException();
 }
 public void Change_SizeMode(ViewFactoryContent control, DialogSize sizeMode = DialogSize.Fill)
 {
     Dialog.SizeMode = sizeMode;
 }
示例#7
0
 public bool? ShowDialog(string title, object content, DialogSize dialogSize = DialogSize.SizeToContent, MessageBoxButton buttons = MessageBoxButton.OKCancel, MessageBoxResult defaultButton = MessageBoxResult.OK, ICommand[] buttonCommands = null)
 {
     throw new NotImplementedException();
 }
示例#8
0
 public IWaitDialog CreateWaitDialog(string title, string message, DialogSize dialogSize = DialogSize.SizeToContent, TimeSpan? delayShow = null, Func<Tuple<bool, string>> onCancel = null)
 {
     throw new NotImplementedException();
 }