XAML errors reported by Analyze Errors in Solution

At the moment, the 4.5 beta is finding some errors in our xaml files. I hadn't look at any of this with a previous version so I cannot compare results.

The first error is that many classes are lacking default constructors. That one I sort of understand. I think that class would not be usable as a component in another class without this. Since they are all simply dialogs or windows we create via C# calls, we always pass in the parameters and everything works as expected.

The other is a pair of errors: "Duplicate attribute x:Name" and "Duplicate attribute Name"  These always happen inside a tag as follows:
<infra:Field x:Name="tenorField" Name="Tenor" Label="Tenor">

infra is introduced by the following:
    xmlns:infra="http://infragistics.com/DataPresenter"


First impression is that it is confusing the namespace. I had found a reference to a similar confusion existing in an earlier version of R#.

I confess to not being a XAML wiz so these errors seem odd.

1 comment
Comment actions Permalink

Otis,

thanks for your feedback.

The first error is that many classes are lacking default constructors.
That one I sort of understand. I think that class would not be usable as a
component in another class without this. Since they are all simply dialogs
or windows we create via C# calls, we always pass in the parameters and
everything works as expected.


This should have been fixed in recent builds. It became a warning. In fact,
if you instantiate XAML from another XAML it will fail during runtime.

The other is a pair of errors: "Duplicate attribute x:Name" and "Duplicate
attribute Name" These always happen inside a tag as follows:
<infra:Field x:Name="tenorField" Name="Tenor" Label="Tenor">

>

infra is introduced by the following:
xmlns:infra="http://infragistics.com/DataPresenter"

We'll check this ASAP.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.