Coder Social home page Coder Social logo

transparenttextbox's People

Contributors

eva-ss avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

transparenttextbox's Issues

是否使用密码的属性应当放到SingleTextView中

在设计的时候TextBox本身并不是一个文本框,它仅仅提供一个文本框必要的事件和属性,是一个文本框容器。

如果对TextBox提供了是否使用密码框,那么在其他TextView下,这个属性似乎显得有些多余。 而且这个功能可以参考原生的TextBox的PasswordChar属性,而不使用bool类型值。因为用户可能希望显示*而不是,当passwordchar属性被设置时,说明用户想以密码框的方式显示。

在 SingleTextView 添加一个 passwordchar 属性,然后在 DrawLine 的时候判断一下这个属性是否被设置,如果被设置了所有的字符绘制直接使用 passwordchar 的字符就行了。其他保持不变。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.