lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.03k stars 666 forks source link

Snackbar show broken #1121

Closed saustudio closed 3 weeks ago

saustudio commented 3 weeks ago

Describe the bug

if SnackbarPresender place in NavigationView.ContentOverlay and go to a page that is not defined in the NavigationView element , and use snackbarService.show, then I don't see the pop-up snockbar.

To Reproduce

  1. place NavigationView in any window
  2. place SnackbarPresender in NavigationView.ContentOverlay
  3. navigate to any page-1 from NavigationView
  4. place button in page-1 and click it for navigate to page-2 with navigationService , page-2 must without declare in Navigation View
  5. in page-2 use snackbarService.show

Expected behavior

i want see snackbar popup

Screenshots

No response

OS version

windows 10

.NET version

net 8

WPF-UI NuGet version

3.0.4

Additional context

Snackbar work if place SnackbarPresender without NavigationView.ContentOverlay

saustudio commented 3 weeks ago

maybe it's my problem project, if i use snackbarService.SetSnackbarPresenter on Navigating, without window constructor , that work/