XML转换为WPF Richtextbox [英] XML to WPF Richtextbox

查看:230
本文介绍了XML转换为WPF Richtextbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.是否可以使用正确的格式视图打开/加载xml文档.元素标签是缩进的,也可以在wpf文本框中加载仅" xml内容.我是WPF和XML的新手.

谢谢.

marcruger

Hi. Is it possible to open/load xml document with proper format view. Element tags are indented and also is it possible to load "only" xml content in wpf textbox. I am a newbie in WPF and XML.

Thanks.

marcruger

推荐答案

Textbox/TextBlock不适合以正确的格式显示XML.在这种情况下,如果要在WPF窗口中以正确的格式显示XML,则可以使用以下控件.

一个简单的WPF XML文档查看器控件 [
Textbox/TextBlock is not appropriate to display the XML in proper format. If you want to display the XML in proper format in your WPF window in that case you can use following control.

A Simple WPF XML Document Viewer Control[^]


这篇关于XML转换为WPF Richtextbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆