Skip to content

When a document gets floated no new window appears. Why? #310

Closed Answered by CodeDevAM
CodeDevAM asked this question in Q&A
Discussion options

You must be logged in to vote

A Factory needs an HostWindowLocator to create Windows.

public Factory Factory { get; init; } = new()
{
    DefaultHostWindowLocator = () => new HostWindow()
    {
        Background = new SolidColorBrush(Color.FromArgb(0xFF, 0x1E, 0x1E, 0x1E))
    }
};

Note: By default the background is transparent. It might be usefull to set some background color to the HostWindow.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CodeDevAM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant