VisualStateGroups doesn't work in the VS 2022 but workes in the VS 2019

Sina Asefi 11 Reputation points
2022-01-21T10:10:51.877+00:00

Hello
Before I had VS 2019 and all of my application worked very well with (.net 4.8) ,But today I installed VS 2022 and when I open each application in the Blend Visual studio it gives this error:
The member "VisualStateGroups" is not recognized or is not accessible.
But if I open it in VS 2019 again everything is ok.
Do I need to install something?
Thank you.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 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.
765 questions
{count} votes