[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;
        }
    }
时间: 2024-11-11 00:35:54

[XAF] Keep the DetailView open in a popup window的相关文章

popup window

本人小菜一个.目前只见过两种弹出框的实现方式,第一种是最常见的PopupWindow,第二种也就是Activity的方式是前几天才见识过.感觉很霸气哦.没想到,activity也可以做伪窗口. 先贴上最常见的方法,主要讲activity的方法. 一.弹出PopupWindow /** * 弹出menu菜单 */ public void menu_press(){ if(!menu_display){ //获取LayoutInflater实例 inflater = (LayoutInflater)

在指定控件位置弹出popup window

先看效果图 黄色的就是弹出的popup window 首先自定义一个view用来显示,文件名为layout_my_view.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content

Android Popup Window 居于控件上方突出显示

public class TestPopupWindowActivity extends PopupWindow { Activity context; public TestPopupWindowActivity(Activity context, View v) { super(context); this.context = context; RelativeLayout mContentView = new RelativeLayout(context); RelativeLayout.

Android: Dragging Popup Window 可移动浮动框

final View cv = new View(this); setContentView(cv); TextView tv = new TextView(this); tv.setBackgroundColor(0xffeeeeee); tv.setTextColor(0xff000000); tv.setTextSize(24); tv.setText("click me\nthen drag me"); tv.setPadding(8, 8, 8, 8); mPopup = n

[XAF] How to improve the application&#39;s performance

https://www.devexpress.com/Support/Center/Question/Details/T148978 The best way to determine the precise cause of a performance problem is to profile your application using a specialized performance profiler tool, e.g., AQTime, ANTS Performance Profi

解决popup不随着window一起移动的问题

当我们设置Popup的StayOpen="True"时,会发现移动窗体或者改变窗体的Size的时候,Popup并不会跟随着一起移动位置.为了解决这个问题,可以给Popup定义一个附加属性,代码如下所示: /// <summary> /// Popup帮助类,解决Popup设置StayOpen="True"时,移动窗体或者改变窗体大小时,Popup不随窗体移动的问题 /// </summary> public class PopopHelper

XAF应用开发教程(八) 汉化与多国语言支持

https://www.cnblogs.com/foreachlife/p/5067380.html 使用了XAF开发时,汉化是一个比较常的问题. 要实现汉化很简单: 1.在这里下载汉化资源文件.这里演示的版本是15.1.X的 2.文件下载后将:文件解压到目录    <你的项目>\BIN\ 下面. 解压后如下所示: 这一步的功能是:汉化多数控件中的使用的文字资源.这是官方提供的方法,也有些字符串是没有被汉化的.因为DEV支持的语言也不少,也制做了许多国家的语言包.但CN的资源包还没有做完全汉化

ASP.NET Application Life Cycle

The table in this topic details the steps performed while an XAF ASP.NET application is running. Note Currently, only the steps that are performed until the main page is shown are detailed. Stage Description Ways to Interfere Application is requested

How to use the Allow/Deny permissions policy in the existing project

https://www.devexpress.com/Support/Center/Question/Details/T418166 Clear [C#] using DevExpress.Persistent.BaseImpl.PermissionPolicy; using DevExpress.ExpressApp.Security.Strategy; using System.Collections.Generic; //.. public override void UpdateData