Allow IExtenderProvider control to attach to controls on a UserControl
VB.NET 2.0 Framework
I developed a control that implements IExtenderProvider in order to attach to controls and display a form for translating of the text of that control. This works great on regular controls on the form but the IExtenderProvider is not attaching to controls on UserControls by default.
Is it possible to modify the UserControl or my IExtenderProvider control to enable it to attach to controls on a UserControl?
开发者_C百科Thanks!
If you own the source code to the IExtenderProvider or UserControl, just change the implemenation to 1) have the extender "dig" into the UserControl.Controls property or 2) have the UserControl expose properties that wrap the control properties that will be extended. [If an extender extends a TextBox control, you cannot make a UserControl look like a TextBox no matter what properties are exposed.]
精彩评论