[Bug] Snackbar does not show on windows when referencing the nuget package
See original GitHub issueDescription
I tried using DisplaySnackbar()
in my project and while I got no errors, the notification did not display when debugging on windows.
I then created a brand new project from the latest preview 10 templates, added a reference to the toolkit, and updated the OnCounterClicked
method to show a snackbar like so:
private async void OnCounterClicked(object sender, EventArgs e)
{
await this.DisplaySnackbar("TEST");
count++;
CounterLabel.Text = $"Current count: {count}";
SemanticScreenReader.Announce(CounterLabel.Text);
}
This still does not show a notification.
I then cloned the repo and added a direct reference to the project so I could step through what was going wrong, however, this time the notification displayed as expected.
Stack Trace
N/A
Steps to Reproduce
- create new project from maui preview 10 templates
- reference pre3 nuget
- attempt to display a Snackbar
Expected Behavior
Notification displays in windows
Actual Behavior
nothing happens on windows
Basic Information
- Version with issue: pre3
- Last known good version: N/A
- IDE: Visual studio
- Platform Target Frameworks:
- UWP: same as preview 10 template
- Nuget Packages: same as preview 10 template
- Affected Devices: windows
Workaround
clone the repo and reference the project directly
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
This project references NuGet package(s) that are missing ...
Right click on the project (not solution) you want to reference nuget packages. · Choose: Manage nuget packages · On the popup window,...
Read more >Snackbar is overflowing long messages making them ...
Bug type Component Component name Snackbar What happened? When displaying long messages/words Snackbar is not breaking words. This makes messages impossible ...
Read more >nuget package manager don't show installed ...
Click Tools > NuGet Package Manager > Package Manager Settings > Package Sources > check if the related package source is set well...
Read more >WPF-UI 2.0.2
A simple way to make your application written in WPF keep up with modern design trends. Library changes the base elements like Page,...
Read more >WPF-UI 1.2.0
A simple way to make your application written in WPF keep up with modern design trends. Library changes the base elements like Page, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@VladislavAntonyuk yep that works fine.
@pictos this repros the issue on my machine: https://github.com/CodedBeard/notoast
If I only update the nuget reference to be a project reference from cloning the repo, it works fine.