Panuon.Documents
Panuon.Documents copied to clipboard
使用TabControl时出现异常问题
在使用TabControl控件时会报好几个异常
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.TreeViewItem', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'Label' (Name='LblIcon'); target property is 'FontFamily' (type 'FontFamily') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.TreeViewItem', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'Label' (Name='LblIcon'); target property is 'FontSize' (type 'Double') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.TreeViewItem', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'Label' (Name='LblIcon'); target property is 'Foreground' (type 'Brush') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.TreeViewItem', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'Label' (Name='LblIcon'); target property is 'FontFamily' (type 'FontFamily') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.TreeViewItem', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'Label' (Name='LblIcon'); target property is 'FontSize' (type 'Double') System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.TreeViewItem', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'Label' (Name='LblIcon'); target property is 'Foreground' (type 'Brush')