2013-02-08 80 views
0

在UI中,我们有一个文本框,它是一个DevExpress.ExpressApp.Win.Editors.StringEdit。enduser如何清除DevExpress StringEdit编辑器?

我们设置其属性如下:

control.Properties.Mask.MaskType = MaskType.DateTimeAdvancingCaret; 
control.Properties.DisplayFormat.FormatString = "yyyy.MM.dd"; 
control.Properties.DisplayFormat.FormatType = FormatType.DateTime; 

当文本框得到它是空的焦点。当最终用户按任意键时,控件显示有效的日期。用户修改日期。现在,用户如何清空/清除此文本框(使用键盘)?

(Del键,退格不工作)

THX

+0

什么按Ctrl-德尔? – sgmoore 2013-02-09 20:45:07

回答

0

从DevExpress的Text Editing Overview帮助文章:
All common text editing features are available in text editors. This includes typing characters, deleting them using the BACKSPACE or DEL keys, etc. Note that end-users can press the CTRL+DEL combination to remove the editor's entire content.

+0

Thx建议。不幸的是,CTRL + DEL在我的情况下做了别的事情:取决于插入位置它将日期“重置”为01或将月份设置为01或将年份设置为“00”(将其扩展为2000) – 2013-02-11 08:19:59

相关问题