.net maui bug visualState on CollectionView

Antoine 0 Reputation points
2023-11-17T14:57:12.7133333+00:00

Hello,

In my Maui Android mobile application, I have a collectionView that contains ItemTemplates. Each ItemTemplate has a state. I've defined a visualState for the Disabled state on the ItemTemplates. When it's in a certain state, it must be Disabled and therefore, thanks to the VisualState, have an opacity of 0.5. So far, the element behaves correctly, but when I click on the Disabled ItemTemplate, its opacity returns to 1 (it's normally no longer selectable). How can I solve this problem?

Developer technologies | .NET | .NET MAUI
Developer technologies | XAML
Developer technologies | XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.