且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在WPF/XAML中将textblock绑定到xml

更新时间:2022-05-02 02:01:03



为了完成这项工作,我需要在根元素上提供一个空的命名空间:
<根 xmlns =" >

这是将XPath查询应用于XAML内联的数据岛的要求.

我希望这有助于您前进,
马丁
Hi There,

To make this work I needed to provide an empty namespace on the root element:
<root xmlns="">

This is a requirement for applying XPath queries to a data island that is inline within the XAML.

I hope this helps to get you going,
Martin