Coder Social home page Coder Social logo

editlabel's Introduction

EditLabel

An editable Label control, who's text can be modified at run-time by double-clicking on it.

Basic Info:
  • An editable Label control, who's text can be modified at run-time by double-clicking on it.
  • Under the hood, it contains a Label control and TextBox control.
  • It works like a Label control until you double-click it with the mouse. When double-clicked it enters 'edit-mode' where a TextBox overlays the Label.
  • The control will AutoSize to the characters you type in the TextBox, updating the Label's size at the same time.
  • You can leave the control's edit mode by hitting either enter, the escape key, or letting the control lose focus.
  • After editing, the control acts like a label again, with the updated text.
Properties:
  • The Text property can be used to get or set the text.
  • The IsEditing property is true while the user is editing the EditLabel.
  • The IsEditable property allows you to disable modification by the user. (Text property can still be set programmatically.) Do not set this property when IsEditing is true.
Events:
  • The TextChanged event is fired for every single update to the TextBox, this includes every keystroke.
  • The TextUpdated event is fired after 1) the user successfully finishes editing the text or 2) the Text property gets updated. Unlike TextChanged, it does not fire for every keystroke. Fired after TextChanged event.
  • The EditingSuccessful event is fired after the user successfully ends an edit event. This event will not fire if the user cancels during editing with the Escape key or if the Text property is set programmatically. Fired after TextUpdated and TextChanged events.

editlabel's People

Contributors

adamwhitehat avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.