==========================================
This example is now obsolete. Instead, refer to the How to: Adjust the size of pop up dialogs example.
==========================================
To accomplish this you can handle the CustomizeTemplate event of the PopupWindowShowAction or XafApplication classes and access the actual template to set its size as needed.
See Also:
How to Show a Window via an Action
Question Comments
Added By: Mario Blatarić at: 7/30/2013 5:08:24 AM
Could you create Web example as well?
It seems this is not as straightforward for Web.
Thanks for the feedback, we will consider updating this example to include a solution from the http://documentation.devexpress.com/#Xaf/CustomDocument3456 help article.
Added By: Hitha at: 6/24/2014 3:31:43 AMHi,
I have set the size as per your code but that is not the size I see when the pop window is shown.
((PopupForm)e.Template).Size = new System.Drawing.Size(400, 130);
Added to that if I have enabled IsSizeable then the window size is properly set(but not set to 400,130) without empty space and if IsSizeable is disabled then it is set to some random value with empty space below/above.
Please suggest a way around this. thanks
Added By: Dennis (DevExpress Support) at: 6/24/2014 7:03:06 AM @Hitha: I suggest you additionally handle the HandleCreated event as demonstrated in the How to define the size of a popup ticket. I hope this helps.Added By: Alexandre Miller at: 5/31/2016 2:25:16 PM Why is this article obsolete, but points to an ASP solution? The title says it's for WinForm.