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

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,578 questions
C#
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.
10,995 questions
XAML
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.
814 questions
{count} votes

Your answer

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