Misleading "Cannot find governing FrameworkElement" error message appears in Output window - by DanThMan

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


7
0
Sign in
to vote
ID 746840 Comments
Status Closed Workarounds
Type Bug Repros 4
Opened 6/5/2012 5:15:32 PM
Access Restriction Public

Description

If you have an ItemsControl with an ItemTemplate that contains a Transform, any data-bindings for properties of the transform will cause a "Cannot find governing FrameworkElement" error message to be logged to the Output window. This error is misleading since the binding actually produces the desired result.
Sign in to post a comment.
Posted by Kevin.K on 2/21/2013 at 12:43 PM
Also see this with GradientStops in a control template. Workaround of giving the GradientStop a name makes the error go away.

<GradientStop Color="{Binding MyColor, RelativeSource={RelativeSource TemplatedParent}}"/>
Posted by Microsoft on 6/6/2012 at 5:26 PM
The WPF team has recently reviewed this issue and will not be addressing this issue as at this time the team is focusing on the bugs impacting the highest number of WPF developers. If you believe that this was resolved in error, please reactivate this bug with any necessary supporting details.

It is misleading and frustrating, but it's not a runtime bug.

Posted by Microsoft on 6/6/2012 at 3:17 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 6/5/2012 at 7:12 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)