Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowNotificationManager with NotificationPosition.BottomCenter incorrectly opens at the top #632

Open
lebhero opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lebhero
Copy link

lebhero commented Dec 22, 2024

Describe the bug
There is an issue with the WindowNotificationManager control in Avalonia when using the NotificationPosition.BottomCenter setting. While the notification is expected to appear at the bottom center of the window, it instead opens at the top of the window. Other NotificationPosition values (e.g., TopLeft, BottomLeft, etc.) work as expected. This behavior seems to be specific to BottomCenter.

<Application.Styles>
    <styling:FluentAvaloniaTheme PreferSystemTheme="False"/>
</Application.Styles>
_windowNotificationManager = new WindowNotificationManager(mainWindow)
{
    MaxItems = 3,
    Position = NotificationPosition.BottomCenter
};
var not = new Notification("Test", "this is a test notification message", NotificationType.Warning);
_windowNotificationManager.Show(not);

Desktop/Platform (please complete the following information):

  • Windows (10)
  • FluentAvalonia Version [latest]
  • Avalonia Version [11.2.3]
@lebhero lebhero added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant