Reputation: 5155
I've successfully implemented Custom Popup Window by using Prism interactivity feature with this guide.
<i:Interaction.Triggers>
<prism:InteractionRequestTrigger SourceObject="{Binding CustomPopupViewRequest, Mode=OneWay}">
<prism:PopupWindowAction>
<prism:PopupWindowAction.WindowContent>
<local:PurchasePaymentInfoView />
</prism:PopupWindowAction.WindowContent>
</prism:PopupWindowAction>
</prism:InteractionRequestTrigger>
</i:Interaction.Triggers>
But the Popup Window is displayed at random position on the screen. I want to define WindowStartupLocation
to CenterScreen
of this Popup Window.
Upvotes: 1
Views: 1421
Reputation:
If you are using the latest pre-release you can use the WindowStartupLocation
property.
If you are not, and using the current CenterOverAssociatedObject
property will not meet your needs:
Then you will have to create your own PopupWindowAction
.
Upvotes: 2