Hi,
In our application we use the XamDockManager with several ContentPanes. Upon loading and before interacting with the mouse. Whenever I press the CTRL-TAB buttons to bring up the PaneNavigator I get the following error:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=SelectedPane; DataItem=null; target element is 'VisualBrush' (HashCode=60503953); target property is 'Visual' (type 'Visual')'
I assumed it was in the panenavigator but I when I have tested commenting out the following in the PaneNavigator style:
<Rectangle Width="{Binding Path=SelectedPane.ActualWidth, RelativeSource={x:Static RelativeSource.TemplatedParent}}" Height="{Binding Path=SelectedPane.ActualHeight, RelativeSource={x:Static RelativeSource.TemplatedParent}}"> <Rectangle.Fill> <VisualBrush AlignmentX="Left" AlignmentY="Top" AutoLayoutContent="False" Stretch="None" Visual="{Binding Path=SelectedPane, RelativeSource={x:Static RelativeSource.TemplatedParent}}" /> </Rectangle.Fill> </Rectangle>
I still get the same error referencing a visual brush - perhaps it is buried in another style? If I start the application and start clicking around in it, it works. I've tried setting focus to a contentpane upon loading to see if that would resolve the problem but it hasn't.
Any insight you can provide would be great.
Hello Nathan,
Thank you for contacting Infragistics!
The best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally. If you are unable able to provide an isolated sample I may be able to give suggestions if you provide the code for your page.