Completed
Last Updated: 20 Jul 2021 09:42 by ADMIN
ADMIN
Evgenia
Created on: 02 Feb 2017 09:36
Category: RibbonView
Type: Bug Report
8
RibbonView: Binding errors are outputted when RibbonView is hosted in RibbonWindow with Title and NoXAML binaries
Output error in VS:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.RadRibbonView', AncestorLevel='1''. BindingExpression:Path=IsHostedInRibbonWindow; DataItem=null; target element is 'WindowTitle' (Name='WindowTitle'); target property is 'NoTarget' (type 'Object')
9 comments
ADMIN
Dinko | Tech Support Engineer
Posted on: 20 Jul 2021 09:42

Hi Gert,

Could it be possible to isolate this in a standalone project so I can take a closer look? I am asking for a project in order to avoid any misunderstanding in the setup. I am looking forward to your reply.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Gert
Posted on: 13 Jul 2021 13:32
The warning still exists in 2021.1.325 release.
ADMIN
Petar Mladenov
Posted on: 14 Aug 2019 12:58
Hi Patrick,

I will try to explain why this warning happens. Its root cause is relative source binding defined in Trigger inside a a Control Template's triggers of an element. The template is defined in a style xaml file. I believe when the style is loaded in the memory and the WPF XAML parser starts to iterate it and starts caching some resources, the warning appears because the Control Template is not yet applied and the control is not yet in the visual tree. In other words this is a Framework specific limitation that we are unable to control. Ont he other hand I don't think this warning should be considered critical or something to avoid at all cost. You can try some suggestions on forums to avoid such warnings on application level but at the end , I think this should be considered with low priority for any kind of application, especially if the binding actually works runtime.

Regards,
Petar Mladenov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Patrick
Posted on: 09 Aug 2019 09:03

Hi Ralitsa,

how can I avoid this warnings?

I have a RibbonView which is hosted in RibbonWindow and NoXAML binaries but without any Title. The title is only set in RibbonView. 

Thank you in advance for your help.

Regards

Patrick

ADMIN
Ralitsa
Posted on: 07 Aug 2019 06:04
Hi all,

In the R3 2018 or higher versions, these errors are replaced with warnings when RibbonView is hosted in RibbonWindow with Title and NoXAML binaries.

Regards,
Ralitsa
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Franz
Posted on: 06 Aug 2019 09:40

Confirming this issue exists in version 2019.2.510.45:

System.Windows.Data Warning: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.RadRibbonView', AncestorLevel='1''. BindingExpression:Path=IsHostedInRibbonWindow; DataItem=null; target element is 'WindowTitle' (Name=''); target property is 'NoTarget' (type 'Object')

Patrick
Posted on: 31 Jul 2019 11:46
Still exists on 2019.2.510.45...
Joerg
Posted on: 22 Oct 2018 08:37
Good morning, this issue still exists (or exists again?) in 2018.3.1016.45 - just started a new project with the 2018 R3 SP1 binaries and getting the exact same binding error.
ADMIN
Ralitsa
Posted on: 20 Jul 2018 08:14
Hi,

The fix for the issue will be available in next LIB version (2018.2.723). It will also be included in our official version – R3 2018, scheduled for the mid of September.

Best regards,
Ralitsa Kumanova