I have below requirement:
我有以下要求:
I wanted to create a custom control in which developer should be able to access below three properties.
我想创建一个自定义控件,开发人员应该能够访问以下三个属性。
- Label:
- IsRequired
- content.
Example 1: Name(Label): TextBox/any input control(Content)
示例1:名称(标签):TextBox /任何输入控件(内容)
Example 2: Name(Label)*(IsRequired): TextBox/any input control(Content)
示例2:名称(标签)*(IsRequired):TextBox /任何输入控件(内容)
- Developer should be able to apply globalization to the Label
- If the field is required then he should be able to set a property to enable * symbol
- Developer should be able set any input control as a content of the control.
开发人员应该能够将全球化应用于Label
如果该字段是必需的,那么他应该能够设置属性以启用*符号
开发人员应该能够将任何输入控件设置为控件的内容。
I request your suggestions, if you send me a sample code that would be good for me.
如果您向我发送一个对我有用的示例代码,我会请求您的建议。
1 个解决方案
#1
1
This demo doesn't seem latest but should be a good start. Googling around a bit more with the keywords found in the demo will also yield some relevant results.
这个演示似乎不是最新的,但应该是一个良好的开端。使用演示中找到的关键字搜索更多内容也会产生一些相关结果。
#1
1
This demo doesn't seem latest but should be a good start. Googling around a bit more with the keywords found in the demo will also yield some relevant results.
这个演示似乎不是最新的,但应该是一个良好的开端。使用演示中找到的关键字搜索更多内容也会产生一些相关结果。