This project is read-only.

binding in ActionPopUpButtons

Jul 16, 2012 at 8:30 AM

Can i bind an ActionPopUpButtons of MessagePrompt to another element in its body?

Jul 17, 2012 at 5:55 AM

can you provide a sample/more information of what you're talking about?

Jul 24, 2012 at 5:33 AM

 I have a MessagePrompt with custom  body which contains a textbox. I want to disable the action button when the text box is empty.

Jul 24, 2012 at 5:58 AM

why not do something like in the sample application but do a binding against one of the buttons for what you want.  You can do bindings in code behind.  Just requires a bit more work

private void MessageSuperClick(object sender, RoutedEventArgs e)
            var messagePrompt = new MessagePrompt
                                        Title = "Advanced Message",
          Background = _naturalBlueSolidColorBrush,
          Foreground = _aliceBlueSolidColorBrush,
          Overlay = _cornFlowerBlueSolidColorBrush,

            var btnHide = new RoundButton { Content = "Hide" };
            btnHide.Click += (o, args) => messagePrompt.Hide();

            var btnComplete = new RoundButton { Content = "Complete" };
            btnComplete.Click += (o, args) => messagePrompt.OnCompleted(new PopUpEventArgs<string, PopUpResult> { PopUpResult = PopUpResult.Ok, Result = "You clicked the Complete Button" });


            messagePrompt.Completed += PopUpPromptStringCompleted;


Jul 26, 2012 at 5:26 AM

I don't know why, but that also not working for me.

  • I created a button
  • bound it to an another control in codebehind

Everything else work except binding

Jul 26, 2012 at 5:31 AM

create a repo project and create work item for me to check into.