You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
When using Visual State Manager, if the VisualStateGroup is placed on a parent element with a TargetName on a page that uses a control template, the application crashes when Setter.Apply fires.
The issue seems to be caused by the TargetName property of the Setter, in that line 58 of Xamarin.Forms.Core/Setter.cs is throwing a null exception when trying to perform element.FindByName(TargetName)
Commenting out the ControlTemplate in the ContentView results in everything working as expected, as seen in the provided example app.
Description
When using Visual State Manager, if the VisualStateGroup is placed on a parent element with a TargetName on a page that uses a control template, the application crashes when Setter.Apply fires.
The issue seems to be caused by the TargetName property of the Setter, in that line 58 of Xamarin.Forms.Core/Setter.cs is throwing a null exception when trying to perform element.FindByName(TargetName)
Commenting out the ControlTemplate in the ContentView results in everything working as expected, as seen in the provided example app.
VSMTestApp.zip
Steps to Reproduce
Expected Behavior
The child element property is set
Actual Behavior
The application crashes with a null value exception
Basic Information
Screenshots
Reproduction Link
Workaround
The text was updated successfully, but these errors were encountered: