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

SOLIDWORKS Property Manager Page data changed events handling


xCAD framework provides event handlers for the data changes in the controls. Use this handlers to update preview or any other state which depends on the values in the controls.

Post data changed event

Xarial.XCad.SolidWorks.UI.PropertyPage.SwPropertyManagerPage.DataChanged event is raised after the user changed the value in the control which has updated the data model. Refer the bound data model for new values.

m_Page.DataChanged += OnDataChanged;
private void OnDataChanged()
{
    var text = m_Data.Text;
    //TODO: handle the data changing, e.g. update preview
}


Powered by Docify