登录到msn-messenger时,您可以使用这些漂亮的文本框,以灰色文本显示要键入的内容(用户名,密码)。 一旦你开始输入它就会消失。 使用WPF中的用户控件肯定不难实现,但这种控制/行为是否已经可用?
While logging in to msn-messenger you have these nifty textboxes that show you what to type (username, password) in gray text. Once you start typing it disappears. This surely is not hard to implement using a user control in WPF, but is this control/behaviour already available?
最满意答案
这被称为“水印文本框”。 这是一个代码示例:
http://vistasquad.co.uk/blogs/nondestructive/archive/2009/01/02/wpf-textbox-with-watermark.aspx
This is called a "watermark textbox". Here's a code sample:
http://vistasquad.co.uk/blogs/nondestructive/archive/2009/01/02/wpf-textbox-with-watermark.aspx
更多推荐
使用,WPF,msn-messenger,implement,using,电脑培训,计算机培训,IT培训"/> <meta nam
发布评论