WPF Xaml 在EntityList里面获取model的值

1 Visibility="{Binding Path=DataContext.Model.IsFromDispensingScreen, RelativeSource={RelativeSource FindAncestor,AncestorType={x:Type UserControl}}}"
原文地址:https://www.cnblogs.com/zqt14520/p/12301027.html