这是indexloc提供的服务,不要输入任何密码
Skip to content

Default window style interfere with resizer window #221

@mgnslndh

Description

@mgnslndh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions