- Popupwindow the raised event that listens to the target object (interactionrequest<t> type) through Interactionrequesttrigger (EventTrigger's derived class) show out;
<wininteractivity:interaction. triggers> <prism:interactionrequesttrigger sourceobject= " {binding Path=employeepopupviewrequest,mode=oneway} > <p Rism:popupwindowaction ismodal= true " Span style= "color: #800000;" > " Centeroverassociatedobject=" true > <prism:PopupWindowAction.WindowContent> <views:employeeview/> </prism:PopupWindowAction.WindowContent> </prism:PopupWindowAction> </prism:InteractionRequestTrigger> </wininteractivity:inte Raction. Triggers>
- Popupwindow implements the Iinteractionrequestaware interface and closes Popupwindow through the action delegate member Finishinteraction;
PublicAction Finishinteraction {Get;Set; } Publicinotification Notification {Get { return This. DataContext asinotification; } Set { This. DataContext =value; } } Private voidCloseWindow () {if( This. Finishinteraction! =NULL) This. Finishinteraction (); }
- Interactionrequestedeventargs (The EventArgs of the event handler for the raised event above) has two as long as the member, One is a derived class of inotification (which will act as the DataContext of Popupwindow: that is, ViewModel) and the other is the action delegate used by the callback.
Popupwindowaction usage of prism.interactivity précis-writers