In my previous blog I mentioned that based on the questions from various folks, I saw two common usage patterns for extensibility. I addressed the first pattern around “custom WPF control with good accessibility” in that blog. In this blog I will take the second pattern -
In many ways, above is the simplistic scenario of the previous scenario or the Excel extension (refer series on Excel extension).
The sample for this is attached. The sample extends standard WinButton control with WinButtonEx and few extra properties to this class. In the sample, there are 3 files -
With above details, comments in the code and some debugging on your own, you should be able to understand what is going on here. Based on the various folks that have been asking about this, there is definite case to invest & simplify this scenario further.