标签:
<winInteractivity:Interaction.Triggers> <prism:InteractionRequestTrigger SourceObject="{Binding Path=EmployeePopupViewRequest,Mode=OneWay}"> <prism:PopupWindowAction IsModal="True" CenterOverAssociatedObject="True"> <prism:PopupWindowAction.WindowContent> <views:EmployeeView /> </prism:PopupWindowAction.WindowContent> </prism:PopupWindowAction> </prism:InteractionRequestTrigger> </winInteractivity:Interaction.Triggers>
public Action FinishInteraction { get; set; } public INotification Notification { get { return this.DataContext as INotification; } set { this.DataContext = value; } } private void CloseWindow() { if (this.FinishInteraction != null) this.FinishInteraction(); }
Prism.Interactivity 之 PopupWindowAction 用法简记
标签:
原文地址:http://www.cnblogs.com/alwaysforward/p/4912910.html