-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IsNullOrEmptyStateTrigger not working for ListView #4411
Comments
Hello fmccown, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
Nice catch, @fmccown . A similar bug occurs in the toolkit's Sample App, for the |
Describe the bug
The XAML below is for a UWP app uses a VisualStateManager with an IsNullOrEmptyStateTrigger from the Microsoft.Toolkit.Uwp.UI package. The trigger is supposed to disable the button when no items are selected from the ListView. However, the button always remains enabled. The ListView's SelectedItem should be null when nothing in the list is selected (nothing is selected when you first run the app).
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
When you run the app, the IsNullOrEmptyStateTrigger should set myButton.IsEnabled = false until an item from the ListView is selected.
Screenshots
No screenshot is necessary.
Environment
NuGet Package(s):
Microsoft.Toolkit.Uwp.UI package (v7.1.2)
Package Version(s):
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio version:
Additional context
N/A
The text was updated successfully, but these errors were encountered: