在WPF C中将大量内容复制到richtextbox时如何显示进度条# [英] How do I show a progressbar when copy huge content into richtextbox in WPF C#

查看:341
本文介绍了在WPF C中将大量内容复制到richtextbox时如何显示进度条#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

We have a requirment to paste unlimited data to RichTextBox control in wpf but when i press ctrl+v, my application is hanging for some time until paste is completed.

It will be really helpfull if any body help me with some progressbar or backgrpundworker or multi threading.

Regards
Sridhar





我尝试过:



尝试在DataObject.PastingHandler中应用一些后台工作程序,但这是在粘贴事件后发生的



What I have tried:

trying to apply some background worker in DataObject.PastingHandler but this is happening after pasting event

推荐答案

A快速谷歌搜索: wpf update richtextbox asyn - Google搜索 [ ^ ]



找到了这个答案: c# - 向RichTextBox添加文本Async #C / WPF - Stack Overflow [ ^ ]
A quick Google search: wpf update richtextbox asyn - Google Search[^]

found this answer: c# - Adding text to RichTextBox Async #C / WPF - Stack Overflow[^]


这篇关于在WPF C中将大量内容复制到richtextbox时如何显示进度条#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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