首页 > 代码库 > [XAF] Keep the DetailView open in a popup window
[XAF] Keep the DetailView open in a popup window
public class ViewController1 : ViewController { ListViewProcessCurrentObjectController controller; protected override void OnActivated() { base.OnActivated(); controller = Frame.GetController<ListViewProcessCurrentObjectController>(); controller.CustomizeShowViewParameters += controller_CustomizeShowViewParameters; } void controller_CustomizeShowViewParameters(object sender, CustomizeShowViewParametersEventArgs e) { e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow; } protected override void OnDeactivated() { controller.CustomizeShowViewParameters -= controller_CustomizeShowViewParameters; base.OnDeactivated(); } } public class MyNewObjectViewController : WinNewObjectViewController { protected override void New(SingleChoiceActionExecuteEventArgs args) { base.New(args); args.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow; } }
[XAF] Keep the DetailView open in a popup window
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。