question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Snackbar does not show on windows when referencing the nuget package

See original GitHub issue

Description

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

  1. create new project from maui preview 10 templates
  2. reference pre3 nuget
  3. 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:closed
  • Created 2 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CodedBeardcommented, Dec 12, 2021

@VladislavAntonyuk yep that works fine.

1reaction
CodedBeardcommented, Dec 10, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found