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.04k stars 667 forks source link

SnackbarPresenter #1042

Closed Hykox closed 2 months ago

Hykox commented 3 months ago

Describe the bug

Hello everyone,

I don't understand how to display the SnackBar on the last version. Can someone show me the code needed to make this snackbar appear?

Thanks a lot

To Reproduce

nothing

Expected behavior

nothing

Screenshots

No response

OS version

Windows 11

.NET version

.NET 8

WPF-UI NuGet version

3.0.3

Additional context

No response

pomianowski commented 2 months ago

Hey, the sample is in the Gallery app

https://github.com/lepoco/wpfui/blob/303f0aefcd59a142bc681415dc4360a34a15f33d/src/Wpf.Ui.Gallery/App.xaml.cs#L38 https://github.com/lepoco/wpfui/blob/303f0aefcd59a142bc681415dc4360a34a15f33d/src/Wpf.Ui.Gallery/Views/Windows/MainWindow.xaml#L70 https://github.com/lepoco/wpfui/blob/303f0aefcd59a142bc681415dc4360a34a15f33d/src/Wpf.Ui.Gallery/Views/Windows/MainWindow.xaml.cs#L30 https://github.com/lepoco/wpfui/blob/303f0aefcd59a142bc681415dc4360a34a15f33d/src/Wpf.Ui.Gallery/ViewModels/Pages/DialogsAndFlyouts/SnackbarViewModel.cs#L32-L38