WPF屏蔽的文本框,其值不包含掩码 [英] WPF Masked Textbox with a value that does not contain mask

查看:56
本文介绍了WPF屏蔽的文本框,其值不包含掩码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个WPF文本框,其中显示的电话号码为(555)555-5555",但其值为"5555555555".

I need a WPF Textbox that displays a phone number as "(555) 555-5555" but has a value of "5555555555".

我看到的所有示例都能够掩盖UI上的控件,但这会影响我的视图模型的bound属性,从而使属性值具有多余的()-字符.

All of the examples I'm seeing have the ability to mask the control on the UI but that affects the bound property of my view model so that the property value has the extraneous ()- characters.

推荐答案

查看全文

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