这就是我的 xPathNavigator 的样子:
<mux:Column Name="id" DisplayMemberBinding="{Binding Path=Id, Mode=OneWay}" Width="100" DisplayName="Header_Id" Property="Id" DataType="s:String" xmlns:mux="http://schemas.microsoft.com/SystemCenter/Common/UI/Views/GridView" />
我想读取 DisplayMemberBinding 属性中 Path 的值。
这是我尝试过的:
xPathNavigator.GetAttribute("DisplayMemberBinding", "") //Gives me {Binding Path=Id, Mode=OneWay}
xPathNavigator.GetAttribute("DisplayMemberBinding/Binding/@Path", "") //Gives me empty string
如何获取 DisplayMemberBinding 属性中 Path 的值?