In my local project, RatioChanged is being invoked every OnParameterSet(), which is causing the component to rerender, which then invokes OnParameterSet() again, and so on and so forth.
This change hides RatioChanged behind the parameter Ratio. Setting the Ratio property to a value will invoke its setter, which will check if to see if the value has changed before updating the local copy and invoking RatioChanged. This way, only when the value of Ratio has changed will the callback RatioChanged be invoked.
In my local project, RatioChanged is being invoked every OnParameterSet(), which is causing the component to rerender, which then invokes OnParameterSet() again, and so on and so forth.
This change hides RatioChanged behind the parameter Ratio. Setting the Ratio property to a value will invoke its setter, which will check if to see if the value has changed before updating the local copy and invoking RatioChanged. This way, only when the value of Ratio has changed will the callback RatioChanged be invoked.
Please request any changes necessary.
Thanks, Dan