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

Option box control in SOLIDWORKS Property Page with xCAD framework


Option box control
Option box control

Options group can be defined by decorating the property of type Enum with OptionBoxAttribute.

using Xarial.XCad.Base.Attributes;
using Xarial.XCad.UI.PropertyPage.Attributes;

public class OptionBoxDataModel
{
    public enum Options_e
    {
        Option1,
        Option2,
        [Title("Third Option")]
        Option3
    }

    [OptionBox]
    public Options_e Options { get; set; }
}


Powered by Docify