PropertyGrid in DockWindow causes exceptions

Grids for WPF Forum

Posted 9 years ago by SledgeHammer01
Version: 9.2.0515
Platform: .NET 4.0
Environment: Windows Server 2003 (32-bit)
Avatar
I created a UserControl.

UserControl is:

<Grid Focusable="False">
<TabControl TabStripPlacement="Bottom" Focusable="False" FocusVisualStyle="{x:Null}">
<TabItem x:Name="propTab" Header="Properties" FocusVisualStyle="{x:Null}">
<propgrid:PropertyGrid x:Name="propGrid" />
</TabItem>
<TabItem x:Name="fieldTab" Header="Fields" FocusVisualStyle="{x:Null}" />

</TabControl>

</Grid>

I dynamically create document windows using the ActiPro docking classes:

DocumentTemplateWindow dtw = new DocumentTemplateWindow(template);
DocumentWindow dw = new DocumentWindow(dockSite, null, template.Name, null, dtw);
dw.Focusable = false;
dw.Activate();
_templateWindowList[template.ID] = dw;

When I close the document window, the property grid throws a bunch of errors out:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=NameTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.PropertyGrid', AncestorLevel='1''. BindingExpression:Path=ValueTemplateSelector; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'ContentTemplateSelector' (type 'DataTemplateSelector')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.Primitives.IPropertyDataAccessor', AncestorLevel='1''. BindingExpression:Path=IsModified; DataItem=null; target element is 'TreeListViewCell' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')

Comments (13)

Posted 9 years ago by SledgeHammer01
Avatar
Also,

I am using PropertyGrid.SelectedObject method...
I tried catching the window close, etc. and setting SelectedObject to null, but no luck getting rid of the errors.
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

For issues like this it is usually better to put together a small sample project that reproduces the issue and email it over to our support address. That allows us to quickly see the issue and troubleshoot it. Based on what you provided above, I was unable to reproduce the issue.

In general, you can safely disregard binding errors that don't actually cause you problems. These are usually timing-related and the bindings resolve just fine when the visual tree is fully connected. This can happen when loading or unloading a control. See this link for more info.

We realize these "errors" can be annoying. If you can reproduce this in a small sample project, we can try to resolve them. But since we are working around an issue in WPF, we may not be able to suppress/avoid them.


Actipro Software Support

Posted 9 years ago by SledgeHammer01
Avatar
I have put together a sample that demonstrates this issue.
Posted 9 years ago by Marek Wasilewski
Avatar
Hi
I can confirm that we are getting the same issue. As you say it is not fatal, but it does seem to make the performance extremely sluggish.

Looking forward to hearing of a workaround/fix...

Best regards

Marek
Posted 9 years ago by Tom Spilman
Avatar
We're also seeing this issue.

Again... its not causing any bugs in functionality, but it makes our debug build almost unusable at times while 100s of "Cannot find source for binding with reference" errors are spewed to the output window.

Anything we can do to reduce or remove these errors it would be worth it.
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Tom/Marek,

If you can send in a sample that reproduces the binding debug errors to our support email, then we can see if we can tweak things to avoid them. But unfortunately, only Microsoft can truly fix this as it's a timing issue in WPF, which we have no control over. Sometimes we are able to tweak things to avoid/fix the debug output, but it's usually just trial and error and doesn't always help.


Actipro Software Support

Posted 9 years ago by SledgeHammer01
Avatar
I did email you guys a sample that illustrated this problem on 3/1. You said you saw the problem on your end and marked down a TODO to try to clean up the errors.
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi SledgeHammer01,

Yes, we looked at trying to fix the scenario in your sample for several hours with no luck. Tom and/or Marek may have a slightly different case that we can easily fix.


Actipro Software Support

Posted 9 years ago by KC
Avatar
I have the same type of errors with the propertygrid. We are using Version: 10.2.530.0

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=IsExpanded; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='ActiproSoftware.Windows.Controls.PropertyGrid.TreeListViewItem', AncestorLevel='1''. BindingExpression:Path=HasItems; DataItem=null; target element is 'TreeListViewToggleButton' (Name=''); target property is 'NoTarget' (type 'Object')

Is there a fix for this?
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
As we mention above, we have been able to "fix" some errors previously. But in general, we are at the mercy of Microsoft and have no real control over, or a way to fix/suppress, these messages.


Actipro Software Support

Posted 9 years ago by SledgeHammer01
Avatar
Just an FYI to others, I have found a "work-around" for this. These warnings (and the subsequent slow performance) is caused by the property grid re-populating itself (and re-calculating the layout, etc) when you update SelectedObject. This work-around will get rid of the warnings AND make the property grid work a LOT faster.

Create a "proxy class" (i.e. WidgetProxy) that implements INotifyPropertyChanged and expose all your properties in there. Add a non-browseable property called Object or whatever.

Create a single instance of the proxy class and set propGrid.SelectedObject to that. Now instead of updating SelectedObject, use the Widget.Object property instead. The setter for Widget.Property should of course raise INotifyPropertyChanged events for all properties.

What this ends up doing is updating the property grid through INotifyPropertyChanged events rather then deleting and re-creating items all the time (through reflection no less!).

It’s a bit of a hassle yeah, and it assumes that all objects you are browsing have the same properties, but that’s a reasonable assumption.

The performance improvements are VERY noticeable.
Posted 9 years ago by KC
Avatar
Thank you for sharing this suggested work-around... So, I guess we're not totally at the "mercy of Microsoft". ;-)
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

Using a proxy object like described above is certainly a reasonable solution, but assumes that the SelectedObject doesn't change types or even what properties/attributes are exposed (i.e. when using ICustomTypeDescriptor or a custom DataFactory). Unfortunately, we cannot make these assumptions as we have customers using the PropertyGrid in several different ways. In addition, any filters or sorting logic will not be reapplied when the object wrapped by the proxy is changed.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 19 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.