Skip to content

Notifications style #5553

Answered by maxkatz6
B8ightY asked this question in Q&A
Feb 24, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

All of these questions can be solved by overriding styles of these files:

Your setters with HorizontalAlignment,VerticalAlignment will allow to center notification manager, like here:
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/WindowNotificationManager.xaml

And you can use Style.Animations to define custom transitions and restyle with you styles. I would recommend creating new template for NotificationCard with another controls names, so old styles will not applied.
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/NotificationCard.xaml

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maxkatz6
Comment options

@B8ightY
Comment options

Answer selected by B8ightY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants