【问题标题】:Windows 8 PasswordBox placeholderWindows 8 密码框占位符
【发布时间】:2013-02-17 13:37:30
【问题描述】:

如何在 Windows 8 应用程序中的 PasswordBox 控件中添加文本占位符,而它没有文本并且没有获得焦点?

【问题讨论】:

    标签: winforms windows-runtime windows-store-apps passwordbox


    【解决方案1】:

    WinRT XAML 工具包现在有一个WatermarkPasswordBox。你可以从NuGet 得到它。此外,对于 Windows 8.1,您可以使用 PlaceholderText 属性。

    【讨论】:

      【解决方案2】:

      看起来没有实现的功能,你需要自己做。

      你可以从Callisto WatermarkTextBox得到一些想法

      或从下一个问题和答案 - Watermark / hint text TextBox in WPF

      【讨论】:

        猜你喜欢
        • 2014-03-08
        • 1970-01-01
        • 2014-02-14
        • 1970-01-01
        • 2014-03-28
        • 1970-01-01
        • 2018-08-30
        • 2012-08-23
        • 1970-01-01
        相关资源
        最近更新 更多