I want to make my "non client area" in the popup window. How and where can I work with the window code-behind PopupWindowAction? Can I respond to PopupWindowAction window events in a ViewModel UserControl? Application.Current.Windows gives windows but how to manage this window exactly?

<i:Interaction.Triggers> <prism:InteractionRequestTrigger SourceObject="{Binding CustomPopupRequest}"> <prism:PopupWindowAction IsModal="True" WindowStartupLocation="CenterOwner" > <prism:PopupWindowAction.WindowStyle> <Style TargetType="{x:Type Window}"> <Setter Property="WindowStyle" Value="None"/> <Setter Property="WindowChrome.WindowChrome"> <Setter.Value> <WindowChrome UseAeroCaptionButtons="False" CaptionHeight="0"/> </Setter.Value> </Setter> </Style> </prism:PopupWindowAction.WindowStyle> <prism:PopupWindowAction.WindowContent> <views:AddObjectUserControl /> </prism:PopupWindowAction.WindowContent> </prism:PopupWindowAction> </prism:InteractionRequestTrigger> </i:Interaction.Triggers> 
  • Got a window in the code-behind UserControl using Window.GetWindow (this). I will be glad to the best solutions - Mike Waters
  • There are two options. You make the property to which the ViewModel property is. When an event is received, what you need to pass to the ViewModel is assigned to the UserControl property. The ViewModel subscribes to the property change. The second option, you do not a property, but a command, and when you receive an event, call its Exceute method with passing the necessary parameters. - Alexey Losev

0