I'm trying to build 2013 Q1 (0403) controls from source code, but I get more than 100 errors of type:
HeaderedItemsControl\MetadataRegistration.cs(6,53): error CS0234: The type or
namespace name 'Controls' does not exist in the namespace 'Silverlight::System
.Windows' (are you missing an assembly reference?) [C:\tmp\RadControls_for_Silv
erlight_Source_2013_1_0403\Core\Controls\Design\Controls.Design\Controls.Visual
Studio.Design.4.0-SL.csproj] [C:\tmp\RadControls_for_Silverlight_Source_2013_1_
0403\Build\BuildControls.proj]
The reason, we are building controls, is Yours ParentOfTypeExtension method:
private static DependencyObject GetParent(this DependencyObject element)
The problem, I reported some time ago, has been refused to fix.
The problem is in a call to method:
VisualTreeHelper.GetParent(element) with passing DependencyObject as parameter.
As stated here:
http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper.getparent(v=vs.95).aspx
InvalidOperationException |
reference is null, or is not a valid UIElement. |
so it's recommended to make a check of passed object type before calling VisualTreeHelper.GetParent method.
The problem occurs in some specific situations, when for example Hyperlink button has focus, and some focus changes between e.g. RadComboBox and RadGridView occurs.
Please consider fixing this bug, or provide some instruction for building those controls.
Doing as the instructions says and running Build_SL5_Xamless.bat finishes up with errors mentioned at begging.
Best regards
8 Answers, 1 is accepted
Would it be possible for you to send us an example demonstrating the case you have? We could change our code to check if this method is invoked for UIElement, but we will need some demo to reproduce the issue first.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
There is sample application and description, how to start it in order to get the exception.
We are currently investigating the case further. I will update you when we have more info on the matter.
Greetings,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I am glad to inform you that we managed to resolve the issue. The fix will be part of our next latest internal build.
Regards,Didie
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank You very much for applying this fix. This will allow us to make process of upgrading Your controls much easier.
Best regards
Let us know if you encounter any problem after applying the fix. You can also upgrade to the upcoming Q2 2013 once it is out.
Regards,Didie
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank You for Your help!
Best regards,
Marcin Danek