This question is locked. New answers and comments are not allowed.
Hi
In very simple scenario RadTreeView throws exception. User should just click on hyperlink. Here is xaml code:
If to remove RadTreeView from xaml everything works fine.
Here is exception:
System.InvalidOperationException: Reference is not a valid visual DependencyObject.
at System.Windows.Media.VisualTreeHelper.GetRelative(DependencyObject reference, RelativeKind relativeKind)
at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
at Telerik.Windows.Controls.ParentOfTypeExtensions.GetParent(DependencyObject element)
at Telerik.Windows.Controls.ParentOfTypeExtensions.<GetParents>d__0.MoveNext()
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at Telerik.Windows.Controls.ParentOfTypeExtensions.IsAncestorOf(DependencyObject element, DependencyObject descendant)
at Telerik.Windows.Controls.TreeView.TreeViewPanel.OnGridViewVirtualizingPanelLostFocus(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Reproducible on RadControls 2012_1_326.
In very simple scenario RadTreeView throws exception. User should just click on hyperlink. Here is xaml code:
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
StackPanel
>
<
telerik:RadTreeView
>
</
telerik:RadTreeView
>
<
RichTextBox
IsReadOnly
=
"True"
>
<
Paragraph
>
<
Hyperlink
NavigateUri
=
"http://www.google.com"
>
Silverlight</
Hyperlink
>
</
Paragraph
>
</
RichTextBox
>
</
StackPanel
>
</
Grid
>
If to remove RadTreeView from xaml everything works fine.
Here is exception:
System.InvalidOperationException: Reference is not a valid visual DependencyObject.
at System.Windows.Media.VisualTreeHelper.GetRelative(DependencyObject reference, RelativeKind relativeKind)
at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
at Telerik.Windows.Controls.ParentOfTypeExtensions.GetParent(DependencyObject element)
at Telerik.Windows.Controls.ParentOfTypeExtensions.<GetParents>d__0.MoveNext()
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
at Telerik.Windows.Controls.ParentOfTypeExtensions.IsAncestorOf(DependencyObject element, DependencyObject descendant)
at Telerik.Windows.Controls.TreeView.TreeViewPanel.OnGridViewVirtualizingPanelLostFocus(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Reproducible on RadControls 2012_1_326.