Created
February 3, 2013 11:35
-
-
Save lohithgn/4701413 to your computer and use it in GitHub Desktop.
Placeholder public property on custom control class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string _placeholder = "enter value"; | |
[Bindable(true)] | |
[Category("Appearance")] | |
[DefaultValue("enter value")] | |
[Localizable(true)] | |
public string Placeholder | |
{ | |
get | |
{ | |
return _placeholder; | |
} | |
set | |
{ | |
_placeholder = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment