Managed UI dialogs size

Oct 16, 2015 at 10:40 AM
Edited Oct 16, 2015 at 10:58 AM
Hi,

In the previous versions of WixSharp, I changed the default dialogs size, by setting the Parent.ClientSize to a new value in my custom dialogs Load event.
Starting with 1.0.28 it seems I cannot change my dialogs size.
Do you have a suggestion for how can I change my managed dialogs size?

Thank you.
Oct 16, 2015 at 11:12 AM
It seems it works if I reset the Parent.MinimumSize and the Parent.MaximumSize before I change the Parent.ClientSize in my dialog Load event.

Out of topic, I noticed that also PathFileAction objects don't emit Execute attribute. I have to add the Execute attribute using AttributesDefinition.

Regards.
Oct 17, 2015 at 1:56 PM
Thank you. I have opened two issues from your feedback:
https://wixsharp.codeplex.com/workitem/80
https://wixsharp.codeplex.com/workitem/81

The dialog size is a tricky one as it works exacly as intended. Starting from 1.0.27.3 (in response on feedback) the dialog is made non-resizable by default. This is the correct behavior of the setup shell (main window) and setting Parent.Max/Min size is the way to go.

However it is not the first time this puzzles developers so I will need to come up with a more intuitive way of defining the desired shell size upfront.

"Execute attribute" is just a plain mistake.

The fix will be available soon.
Oct 19, 2015 at 12:16 PM
Both problems are fixed in Release v1.0.28.1 (HotFix).

You can get it from NuGet:
Install-Package WixSharp.bin -Pre
Now you can update the initial ShellView size in the dedicated event handler:
project.UILoaded += msi_UILoaded;
...
static void msi_UILoaded(SetupEventArgs e)
{
    //ManagedUIShell is just a Form thus it can be manipulated as any other WinForm window
    e.ManagedUIShell.SetSize(700, 500);
} 
Oct 20, 2015 at 8:56 AM
Thank you.