Tab control in SOLIDWORKS property Manager Page
Tab containers are created for the complex types decorated with TabAttribute.
using CodeStack.SwEx.Common.Attributes; using CodeStack.SwEx.PMPage.Attributes; using CodeStack.SwEx.Properties; 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; }