Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default window style interfere with resizer window #221

Open
mgnslndh opened this issue Dec 29, 2020 · 0 comments
Open

Default window style interfere with resizer window #221

mgnslndh opened this issue Dec 29, 2020 · 0 comments

Comments

@mgnslndh
Copy link
Contributor

When using a style library (like for example ModernWpf) that adds a default window style it can happen that the style interferes with the expected look of the window used when resizing controls in the DockManager.

Example

App.xaml

<Application.Resources>
    <ResourceDictionary 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">        
        <Style TargetType="Window">
            <Setter Property="BorderBrush" Value="Black"/>
            <Setter Property="BorderThickness" Value="5"/>
        </Style>
    </ResourceDictionary>
</Application.Resources>

Result

image

Solution

I propose we make sure that the resizer window use an empty style and not the default style. We could define an empty style that could be restyled by themes but I cannot really think of a scenario where you would want this window to be visible. The simplest solution is rather to just apply a new empty style in code.

mgnslndh added a commit to mgnslndh/AvalonDock that referenced this issue Dec 29, 2020
Dirkster99 added a commit that referenced this issue Jan 13, 2021
Fix issue with default window style and resizer window host #221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant