XCAD.NET
XCAD.NET
Framework for .NET (C# and VB.NET) to create modern application for CAD systems (SOLIDWORKS, SOLIDWORKS Document Manager, Autodesk Inventor, etc.)
Get technical support Connect to xCAD community on Discord server Explore code and application examples xCAD.NET Templates for Visual Studio and VS Code Access source code

Tab control in SOLIDWORKS property Manager Page


Controls grouped in Property Manager Page tabs
Controls grouped in Property Manager Page tabs

Tab containers are created for the complex types decorated with TabAttribute.

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

public class TabDataModel
{
    [Tab]
    [Icon(typeof(Resources), nameof(Resources.OffsetImage))]
    public class TabControl1
    {
        public string Field1 { get; set; }
    }

    public TabControl1 Tab1 { get; set; }

}

Tab with nested groups

Controls can be added directly to tabs or can reside in the nested groups:

public class TabControl2
{
    public class Group1
    {
        public int Field2 { get; set; }
    }

    public Group1 Group { get; set; }
    public bool Field3 { get; set; }
}

[Tab]
public TabControl2 Tab2 { get; set; }


Powered by Docify