Hi,
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
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