Skip to content

MouseOverBackground not Set in TitleBar style #1009

Open
@c0nstexpr

Description

Describe the bug

The MouseOverBackground is referenced here

<Setter Property="MouseOverButtonsForeground" Value="{Binding Path=MouseOverButtonsForeground, RelativeSource={RelativeSource AncestorType={x:Type controls:TitleBar}}}" />

But I find nowhere at latter TitleBar style setting

To Reproduce

Load the gallery project and run the gallery application. We will see multiple (4 in my case) bind failures.

Expected behavior

No bind failures

Screenshots

No response

OS version

Win 10 19045.4170

.NET version

Same as repo

WPF-UI NuGet version

Same as repo

Additional context

Temporary Workaround for user:

<ui:TitleBar>
    <ui:TitleBar.Resources>
        <Style TargetType="ui:TitleBarButton" BasedOn="{StaticResource {x:Type ui:TitleBarButton}}">
            <Setter Property="MouseOverButtonsForeground" Value="Black" />
        </Style>
    </ui:TitleBar.Resources>
</ui:TitleBar>

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions