![]() |
1
2
下面是我用来从磁盘加载XML文件并将其绑定到TreeView的一些代码。我删除了一些关于简洁性的常规测试。示例中的XML是一个OPML文件。
|
![]() |
2
1
我不是在一台有VisualStudio的pc上测试它,但你应该可以这样做。
1. Get XML from webservice 2. Convert XML String to XML Document 3. Set the XMLDataProvider.Document value to your XML Document 4. Bind that to your controls |
![]() |
Christian · 角度材质垫按钮切换组数据绑定不工作 2 年前 |
![]() |
Drarig29 · 将堆栈(可以切换)绑定到列表框 6 年前 |
![]() |
Xsayar · 如何将两个命令绑定到WPF按钮? 6 年前 |
![]() |
Infii · 带有自定义数据模板的水平ListView 6 年前 |
![]() |
knutter539 · WPF数据绑定链接文本块文本到组合框选择 6 年前 |
![]() |
Mark Denom · 我的数据绑定是如何写出长度属性的? 6 年前 |