This is a migrated thread and some comments may be shown as answers.

[Solved] Namespace conflict when implementing the ChartToolTipBehavior

2 Answers 214 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jasonxz
Top achievements
Rank 1
jasonxz asked on 21 Jul 2013, 06:00 PM
When I added the ChartToolTipBehavior I started getting a namespace conflict in the XamlTypeInfo.g.cs file when I compile.  This is because the namespace for my Windows app is "XZ.Comics.Windows".
Can I get around this without changing the namespace for my app?

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 22 Jul 2013, 07:41 AM
Hi Jason,

Unfortunately, the issue you have encountered is caused by a WinRT XAML parser bug. It has been already reported to and confirmed by Microsoft.
In the scenario described the issue is caused by the fact that ChartTooltipBehavior exposes attached property of type DataTemplate and when the parser tries to generate wrappers it does not adds global prefix for the property type:
(Windows.UI.Xaml.DataTemplate)Value
instead:
(global::Windows.UI.Xaml.DataTemplate)Value

I have prepared small app with no external references that shows how and why the issue is exposed.

At this point Microsoft has not committed that they will address the issue soon, nor that there is a workaround.
So, in this specific scenario the only option is not using Windows word inside namespaces.

Regards,
Tsvyatko
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
jasonxz
Top achievements
Rank 1
answered on 22 Jul 2013, 03:31 PM
I figured that was probably the case.
I was hoping it wasn't....
Seems like kind of a dumb oversight.  I haven't seen this as a problem in the other XAML platforms.  Doesn't seem it would be that hard to fix, either.
Oh well.  Thanks for the response.  Y'all rock!
Tags
Chart for XAML
Asked by
jasonxz
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
jasonxz
Top achievements
Rank 1
Share this question
or