-
I have few questions about avalonia notifications:
Thanks for any answers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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: 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. |
Beta Was this translation helpful? Give feedback.
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