Display attribute doesn't work in FeaturesDialog window

Jul 30 at 10:23 AM
Hi, Oleg.
In first thank you very much for this framework. Very simple way for create installer every case for new build.

Question is follow.

When I use WixUI_FeatureTree for UI additional attribute Display working ok. The follow C# code create expanded default tree on appropriate window.
var app = new Feature("Application") { Name = "Application",
                                        Description = "Application",
                                        Attributes = new Dictionary<String, String>() { { "Display", "expand" } } };
var driver = new Feature("Driver") { Name = "Driver",
                                     Description = "Driver" };
app.Add(driver);

...

project.UI = WUI.WixUI_FeatureTree;
As we can see by screen below, default feature tree is expand:
Image

But if I will use WixSharp.UI.Forms.FeaturesDialog window this attribute doesn't work and in any case custom tree doesn't expanded on UI by default.
var app = new Feature("Application") { Name = "Application",
                                       Description = "Application",
                                       Attributes = new Dictionary<String, String>() { { "Display", "expand" } } };
var driver = new Feature("Driver") { Name = "Driver",
                                     Description = "Driver" };
app.Add(driver);

...

project.ManagedUI = new ManagedUI();
project.ManagedUI.InstallDialogs.Add<WelcomeDialog>()
                                .Add<LicenceDialog>()
                                .Add<InstallDirDialog>()
                                .Add<FeaturesDialog>()
                                .Add<ProgressDialog>()
                                .Add<ExitDialog>();
As we can see by screen below, custom feature tree is not expand (collapse):
Image

This "feature" doesn't work in custom FeaturesDialog window ? Or has another way for using it ?
If this is doesn't work does it possible for fix it ? :)
Jul 31 at 2:13 PM
Hi there,

I am glad you like Wix#.

The problem is a defect/enhancement so can you please log it a an Issue on https://github.com/oleg-shilo/wixsharp? CodePlex is no longer active and I only discovered your post by a chance.

In a mean time (until the fix is available) you can use VS project WixSharp Custom UI template and adjust the treeview directly from the dialog code.

Thank you,
Oleg
Jul 31 at 5:10 PM
oleg_s, thank you for answer.

I've just look at the last topic which was Jun 15 2017 and create new.
Thank you. Just create copy of this issue on github #111