Bug in setting background image

Sep 21, 2016 at 8:47 AM
Edited Sep 21, 2016 at 8:48 AM
Hi, Oleg!
I have a managed project with standart UI. I detedted a bug in setting BackgroundImage.
When I set up BackgroundImage with dimensions 493312(standart size) BuildWxs return null.
When I set up BackgroundImage with dimensions 493
493 or 164*312, it's OK. But BackgroundImage is resized all over the form.

var project = new ManagedProject("My product",
                new Dir(@"%ProgramFiles%\My product\",
                        new Files(@"Product\*.*"))));
project.UI = WUI.WixUI_InstallDir;
project.BackgroundImage = @"images\dialog_bmp.png"; project.BannerImage = @"images\dialog_banner.png"; return project.BuildWxs();
Sep 22, 2016 at 2:37 AM
Wix# does not participate in images handling of the standard UI. The images you specified are simply passed to the WiX as is:
<WixVariable Id="WixUIBannerBmp" Value="images\dialog_banner.png" />
<WixVariable Id="WixUIDialogBmp" Value="images\dialog_bmp.png" />
I guess that WiX/MSI dialogs don't do resizing and jus fill the area. Thus most likely you will need to play with the actual sizes of the images.