Skip to content

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.ISwPropertyManagerPage<TModel>.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.

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