Skip to content

Why the Hide() method in Snackbar is protected? #1526

@PLFJY

Description

@PLFJY

Describe the bug

I want to use Hide() method of the Snackbar in order to close the Snakbar. Howerver the only close mothod Hide() has a protected permitsion level. I am now using reflection to call this method. In fact, this method is work. So why set it to protected? Is there are something about that?

To Reproduce

Use a Snackbar and try call the Hide() method

Expected behavior

The Hide() method could be called

Screenshots

No response

OS version

OS Windows 11 Professional
Version 24H2
OS Version 26100.5074

.NET version

.Net 9.0.4

WPF-UI NuGet version

4.0.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions