Panuon.Documents icon indicating copy to clipboard operation
Panuon.Documents copied to clipboard

使用TabControl时出现异常问题

Open zh163yx opened this issue 5 years ago • 0 comments

在使用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')

zh163yx avatar Nov 18 '19 06:11 zh163yx