-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
WindowButtonCommands enhancements #2378
Conversation
WindowButtonCommands enhancements
A small question, how to use this? |
@dgadelha To use this style you should use the pre-release NuGet package. Then use it at the MetroWindow in this way <controls:MetroWindow.WindowButtonCommands>
<controls:WindowButtonCommands Style="{DynamicResource MahApps.Metro.Styles.WindowButtonCommands.Win10}" />
</controls:MetroWindow.WindowButtonCommands> |
Oh nice, it worked. |
@punker76 A big question, how to use the Win10WindowButtonCommandsTemplate? |
You can use it like this <Style BasedOn="{StaticResource MahApps.Metro.Styles.WindowButtonCommands}"
TargetType="{x:Type Controls:WindowButtonCommands}">
<Setter Property="Template" Value="{DynamicResource MahApps.Metro.Templates.WindowButtonCommands.Win10}" />
</Style> or <Style TargetType="{x:Type Controls:WindowButtonCommands}" BasedOn="{StaticResource MahApps.Metro.Styles.WindowButtonCommands.Win10}" /> Put one of these styles in the |
I checked out this again today and I found some details that don't match the Windows 10 style. 1- When hovering the Close button, it becomes red (#E81123): 2- Depending on the application base color (dark, light), when hovering a button a black or white semitransparent overlay is added to the button. 3- When the user holds the button (press the mouse button without leaving it), the opacity of the overlay mentioned in item 2 is increased. 4- When holding the close button, a white overlay is added (same mentioned in item 2, although just for pressing) even if the base color scheme is dark. |
What changed?
Closes #1972 Changing Close button icon.