-
-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MouseOverBackground not Set in TitleBar style #1009
Comments
Got it. By the way, what do you want in your issue? Did you want to change all the TitleBarButton MouseOverButtonsForeground in one time? |
Maybe not, the title buttons have different functionalities. Usually the close button background is red and foreground white when hovered, while the others foreground is black. Not pertty sure since I not good at UI design. |
Is this what you want? <ui:TitleBar
x:Name="TitleBar"
Title="{Binding ViewModel.ApplicationTitle}"
Grid.Row="0"
CloseWindowByDoubleClickOnIcon="True">
<ui:TitleBar.Resources>
<Style TargetType="ui:TitleBarButton" BasedOn="{StaticResource {x:Type ui:TitleBarButton}}">
<Setter Property="ButtonsForeground" Value="Red" />
<Setter Property="MouseOverButtonsForeground" Value="Blue" />
</Style>
</ui:TitleBar.Resources>
<ui:TitleBar.Icon>
<ui:ImageIcon Source="pack://application:,,,/Assets/wpfui.png" />
</ui:TitleBar.Icon>
</ui:TitleBar> |
Describe the bug
The MouseOverBackground is referenced here
wpfui/src/Wpf.Ui/Controls/TitleBar/TitleBar.xaml
Line 18 in f59daa0
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:
The text was updated successfully, but these errors were encountered: