如同一般规则,如果某些功能需要控制项的内容,您可能需要考虑将其放置在控制项配接器基底类别中。
As a rule, if some functionality requires the context of a control, you might want to consider placing it in the control adapter base class.
是否要将泛型行为因数化至基底类别和子类别。
Whether to factor generic behavior into base classes and subclasses.
下列范例示范使用基底类别初始设定式。
The following example demonstrates using the base class initializer.
应用推荐