Hello, just recently we incorporated your controls into our application. So far looks good! Except I notice that I'm getting the following exception when adding a TabItemEx to the xamTabControl with the CloseButtonVisibility property set to TabItemCloseButtonVisibility.WhenSelectedOrHotTracked. Any ideas on what could be causing this?
Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Infragistics.Windows.Controls.ToolWindow', AncestorLevel='1''. BindingExpression:Path=IsActive; DataItem=null; target element is 'Button' (Name='CloseButton'); target property is 'NoTarget' (type 'Object')
Thanks!
Hi cambrose,
We have been asked by engineering to log this as a bug. I'll create a case for you momentarily and will follow up with you there.
Thanks,Francis
Has this been resolved?
I'm still getting this. Also getting the same error for the property ShowTabHeaderCloseButton="True"
Using infragistics 2011.2 (InfragisticsWPF4.v11.2 - Runtime Version: v4.0.30319, Version: 11.2.20112.1012)
Thank you!
Hello,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I created a sample with two tabs controls and TabItemCloseButtonVisibility (using Visible and WhenSelectedOrHotTracked) on one and ShowTabHeaderCloseButton="True" on the other. I added a button which adds a new tab to each control. When clicking the button a tab is added to each control successfully.I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
I tested the application using build 11.220112.1012.
Please test the attached sample. If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
Running your sample I get the following:System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Infragistics.Windows.Controls.ToolWindow', AncestorLevel='1''. BindingExpression:Path=IsActive; DataItem=null; target element is 'Button' (Name='CloseButton'); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Infragistics.Windows.Controls.ToolWindow', AncestorLevel='1''. BindingExpression:Path=IsActive; DataItem=null; target element is 'Button' (Name='CloseButton'); target property is 'NoTarget' (type 'Object')System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Infragistics.Windows.Controls.ToolWindow', AncestorLevel='1''. BindingExpression:Path=IsActive; DataItem=null; target element is 'Button' (Name='CloseButton'); target property is 'NoTarget' (type 'Object')
Please let me know about the environment you are working in so that I can try to reproduce the issue.
I was able to replicate the issue you are seeing, and I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 105410. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution. I will leave this case open and update you with this information after the review.
I will create a private case for you to notify of any changes to this issue.
Sincerely,
Valerie
Developer Support Engineer
Infragistics, Inc
www.infragistics.com/support
Has there been any development on this? I'm finding myself bit with it as well using 2011.1 under Windows 7 x64. Thank you!
Hello Collin,
This issue is currently still in development. I have created case CAS-90580-MVCNN3 for you and will link the case to the development issue so that you will be notified of any changes.