在 WPF 中实现所见即所得文档编辑器?

发布于 2024-07-24 09:14:13 字数 357 浏览 2 评论 0原文

您将如何在 WPF 中实现所见即所得文档编辑器?

该编辑器与 WYSIWYG html 编辑器非常相似,但是 后端数据结构不一定是html。 目前,我有一个基于 c++ 实现的 mshtml 控件的工作版本(这非常类似于 MS InfoPath)。 我正在寻求从此工具中删除 mshtml 依赖项,因此使用 WPF WebBrowser 控件是我想避免的选择。

支持的基本功能:

  1. 流程样式文档
  2. 支持一组基本控件(TextBox、DropDown、ListBox、DatePicker 等)
  3. 支持基本样式
  4. 支持表格(调整大小、合并单元格、拆分单元格等)

How will you approach to implement a WYSIWYG document editor in WPF?

This editor is going to be very similar to WYSIWYG html editors, but
back-end data structures do not have to be html. Currently, I have a working version based on mshtml control implemented in c++ (this is pretty much like MS InfoPath). I'm seeking to take out the mshtml dependency from this tool, so using WPF WebBrowser control is a choice I want to avoid.

Basic features to support:

  1. Flow style document
  2. Supports a basic set of controls (TextBox, DropDown, ListBox, DatePicker, etc)
  3. Supports basic styles
  4. Supports tables (resize, merge cells, split cells, etc)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘亓 2024-07-31 09:14:14

可能不完全是您想要的,但您可能想研究 WPF 中构建的 FlowDocument 支持,因为它支持您所要求的很多功能: https://learn.microsoft.com/en-us/dotnet/framework/wpf/advanced/flow-document-overview< /a>

Probably not exactly what you are after, but you might like to investigate the FlowDocument support build into WPF as it supports a lot of what you are asking for: https://learn.microsoft.com/en-us/dotnet/framework/wpf/advanced/flow-document-overview

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文