Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Most controls expose a set or properties that allow the user to determine the control's behavior and appearance. In WFC controls, you create properties as members with get and set functions. But WFC also provides classes and interfaces that help you integrate a control into design-time environments.
The following topics provide information about creating, exposing, and customizing properties in your control:
Creating and Exposing a Property How to add a property definition to your control and how to make it visible in the design-time environment.
Alignment Property Example A simple but complete example of a control property, including validation.
Specifying Property Persistence and Default Values How to specify a default value for the property, and how to specify that non-default property values should be saved.
Specifying Custom Property Attributes Using the PropertyInfo object to further specify how you can work with a property at design time.
Creating a Custom Properties Value Editor How to specify a property-specific editor for the Properties window such as a list box, dialog box, and more.