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
When using prism:InvokeCommandAction to bind event to command, the System.Windows.Markup.XamlParseException is fired. In XAML editor, line with prism:InvokeCommandAction shows error XLS0503 A value of type 'InvokeCommandAction' cannot be added to a collection or dictionary of type 'TriggerActionCollection'.
Steps to Reproduce
Download Prism-Samples-Wpf repository. Open project 29-InvokeCommandAction and update file Packages.props as in the code bellow:
Packages.props is updated to use the lates version of prism (8.0.0.1909). The System.Windows.Interactivity.WPF package must be added to compile the project
Expected Behavior
The app should be able to compile
Actual Behavior
XAML editor shows error on line with prism:InvokeCommandAction
XLS0503 A value of type 'InvokeCommandAction' cannot be added to a collection or dictionary of type 'TriggerActionCollection'.
Basic Information
Version with issue: 8.0.0.1909
Last known good version: 7.2.0.1422
IDE: Visual Studio 2019
Reproduction Link
Just use project 29-InvokeCommandAction from Prism-Samples-Wpf repository and update Packages.props file as described.
The text was updated successfully, but these errors were encountered:
Description
When using prism:InvokeCommandAction to bind event to command, the System.Windows.Markup.XamlParseException is fired. In XAML editor, line with prism:InvokeCommandAction shows error XLS0503 A value of type 'InvokeCommandAction' cannot be added to a collection or dictionary of type 'TriggerActionCollection'.
Steps to Reproduce
Download Prism-Samples-Wpf repository. Open project 29-InvokeCommandAction and update file Packages.props as in the code bellow:
<PropertyGroup>
<PrismVersion>8.0.0.1909</PrismVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Update="Prism.Core" Version="$(PrismVersion)" />
<PackageReference Update="Prism.Wpf" Version="$(PrismVersion)" />
<PackageReference Update="Prism.DryIoc" Version="$(PrismVersion)" />
<PackageReference Update="Prism.Unity" Version="$(PrismVersion)" />
<PackageReference Update="System.Windows.Interactivity.WPF" Version="2.0.20525" />
</ItemGroup>
Packages.props is updated to use the lates version of prism (8.0.0.1909). The System.Windows.Interactivity.WPF package must be added to compile the project
Expected Behavior
The app should be able to compile
Actual Behavior
XAML editor shows error on line with prism:InvokeCommandAction
XLS0503 A value of type 'InvokeCommandAction' cannot be added to a collection or dictionary of type 'TriggerActionCollection'.
Basic Information
Reproduction Link
Just use project 29-InvokeCommandAction from Prism-Samples-Wpf repository and update Packages.props file as described.
The text was updated successfully, but these errors were encountered: