eva-ss / transparenttextbox Goto Github PK
View Code? Open in Web Editor NEW透明的文本框
License: MIT License
透明的文本框
License: MIT License
在设计的时候TextBox本身并不是一个文本框,它仅仅提供一个文本框必要的事件和属性,是一个文本框容器。
如果对TextBox提供了是否使用密码框,那么在其他TextView下,这个属性似乎显得有些多余。 而且这个功能可以参考原生的TextBox的PasswordChar属性,而不使用bool类型值。因为用户可能希望显示*
而不是●
,当passwordchar属性被设置时,说明用户想以密码框的方式显示。
在 SingleTextView 添加一个 passwordchar 属性,然后在 DrawLine 的时候判断一下这个属性是否被设置,如果被设置了所有的字符绘制直接使用 passwordchar 的字符就行了。其他保持不变。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.