Skip to content

Attribute is not allowed in property element #3316

@Tearies

Description

@Tearies

Input code

Please provide the input that failed to decompile.

   <i:Interaction.Behaviors>
            <ei:DataStateBehavior Binding="{Binding VisualState}" TrueState="True" FalseState="False" Value="True"></ei:DataStateBehavior>
        </i:Interaction.Behaviors>    

Erroneous output

   <interactivity:Interaction.Behaviors xmlns:interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity">
     <core:DataStateBehavior xmlns:core="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" core:DataStateBehavior.TrueState="True" core:DataStateBehavior.FalseState="False" core:DataStateBehavior.Value="True" core:DataStateBehavior.Binding="{Binding VisualState}" />
   </interactivity:Interaction.Behaviors>

seems can't be compile:Attribute is not allowed in property element

Details

  • Product in use: e.g. ILSpy
  • Version in use: e.g. 9.0.0 or a commit hash
  • Any other relevant information to the issue, or your interest in contributing a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDecompilerThe decompiler engine itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions