Mohi97
Mohi97

Reputation: 29

Channels not available

I lack the channels dropdown in my sticky windows.

I set glueWindowOptions.WithChannelSupport(true); as per the documentation.

My windows still lack the dropdown though.

Upvotes: 1

Views: 75

Answers (1)

erjitka
erjitka

Reputation: 115

Could it be that you didn't register the glueWindowOptions object to the glue object?

Here is a sample code that initializes a WPF application as a Glue42 one, having channels enabled:

        Glue42 glue = new Glue42();
        glue.Initialize("DotNetApp");

        // Initialize Window Stickiness and read from config:
        var swOptions = glue.GlueWindows?.GetStartupOptions() ?? new GlueWindowOptions();
        swOptions.WithChannelSupport(true);
        glue.GlueWindows?.RegisterWindow(this, swOptions);

Please note the final line, you need to register the swOptions object (in your case, the glueWindowOptions one) via the RegisterWindow method.

Upvotes: 0

Related Questions