How to: Disable/Set WinSetMinimumSizeController | Galaktikasoft

How to: Disable/Set WinSetMinimumSizeController

StatusIDPriorityType
Open25568BlockerQuestion
ProfileReply
ScottClient

Hello, I traced a resizing issue to this controller: WinSetMinimumSizeController.

I found this code in the controller:
private void HandleCustomGetMinSizeEvent(IFrameTemplate frameTemplate)
{
Form form = frameTemplate as Form;
if (form == null)
return;
form.MinimumSize = new Size(640, 480);
}

I tried to Deactivate in an inherited controller and a View Controller with: Frame.GetController().Active["PopupWindow"] = false;

and I still cannot set the size of the window by handling the CustomizeTemplate Event using the following code:

private void DeactivateTeamAction_CustomizeTemplate(object sender, CustomizeTemplateEventArgs e)
{

if (e.Context == TemplateContext.PopupWindow)
{
Templates.PopupWindowForm form = (Templates.PopupWindowForm)e.Template;
form.MinimumSize = new System.Drawing.Size(100, 100);
form.Size = new System.Drawing.Size(420, 180);

}
}

Can you please provide an example of how I can set the popupwindow size smaller than 640x480?

Thank you.

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Agent

Hello Scott,

Thanks for the ticket.
We are going to add the settings for the window to the Application Model.

At the moment you can disable the WinSetMinimumSizeController using its Active property.

Thanks, Sasha.