XCAD.NET
XCAD.NET
Framework for .NET (C# and VB.NET) to create modern application for CAD systems (SOLIDWORKS)
Get technical support Access source code Explore code and application examples

Adding and customizing controls to Property Manager page


Framework will automatically generate the best suitable control for the public property in the data model. For example for all numeric properties the number box control will be generated. For all string properties text box control will be generated. For all complex types group box will be generated.

The style of the controls can be customized via attributes.

Accessing controls

Access to controls is provided via IPropertyManagerPageControlEx wrapper interface. Common properties can be accessed via this interface (such as control id, enable or visible flags). Underlying native SOLIDWORKS control can be accessed via IPropertyManagerPageControlEx.SwControlproperty. It returns the pointer to corresponding IPropertyManagerPageControl which can be cast to specific control such as IPropertyManagerPageSelectionbox, IPropertyManagerPageCombobox, IPropertyManagerPageTextbox etc.

All controls can be accessed via SwPropertyManagerPage::Controls property.


Powered by Docify