Skip to content

About Micsoft.Xaml.Behaviors ambiguous reference problem #147

Answered by NotYoojun
SerenniaHan asked this question in Q&A
Discussion options

You must be logged in to vote

@SerenniaHan Well things get a little bit different when things come to XAML. As you know the namespace of C# code is defined directly in the .cs file. However, the xaml namespaces are defined in the AssemblyInfo:

[assembly: XmlnsPrefix(@"http://schemas.microsoft.com/xaml/behaviors", "b")]
[assembly: XmlnsDefinition(@"http://schemas.microsoft.com/xaml/behaviors", "Microsoft.Xaml.Behaviors")]
[assembly: XmlnsDefinition(@"http://schemas.microsoft.com/xaml/behaviors", "Microsoft.Xaml.Behaviors.Core")]
[assembly: XmlnsDefinition(@"http://schemas.microsoft.com/xaml/behaviors", "Microsoft.Xaml.Behaviors.Input")]
[assembly: XmlnsDefinition(@"http://schemas.microsoft.com/xaml/behaviors", "Microso…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@SerenniaHan
Comment options

Comment options

You must be logged in to vote
1 reply
@SerenniaHan
Comment options

Answer selected by SerenniaHan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants