PopupChildWindowAction default selected button OK

Topics: Prism v2 - Silverlight 4
Sep 6, 2012 at 5:31 PM

Hi 

I am wondering how to make the OK button as the preselected one in confirmation popup window.

Any idea how to make ok button as the default selected button?

Developer
Sep 6, 2012 at 7:31 PM

Hi,

As far as I know, Prism doesn't provide any functionality to do this as out of the box.

As a starting point, you can define your own custom ChildWindow for the PopupChildWindowAction. To use it instead of the default ConfirmationChildWindow, you can set it like this:

<prism:PopupChildWindowAction>
    <prism:PopupChildWindowAction.ChildWindow>
        <local:MyCustomChildWindow/>
    </prism:PopupChildWindowAction.ChildWindow>
</prism:PopupChildWindowAction>

Then, in order to set the OK button of that child window as the default button, I believe you could follow the approaches proposed in this thread:

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Sep 6, 2012 at 8:31 PM

Thanks for your suggestion. I am also trying to create custom child window and hope that will resolve the problem.