c# - Multiple Inheritance - want to extend a class that extends Panel, but I also want to extend StackPanel -


i have control, shrinkingtabpanel, proportionally resizes tabs they're added fit (like chrome). however, extends panel, , doesn't work functionality i'm trying achieve - width of shrinkingtabpanel doesn't increase number of items should.

when changed class extend stackpanel instead, exact functionality needed.

however, shrinkingtabpanel control part of library bought, , it's discouraged change imported source code.

i know multiple inheritance isn't allowed in c#, there way can "effectively" extend shrinkingtabpanel , stackpanel in 1 class?

the first solution thought of make new class extended stackpanel, , call shrinkingtabpanel.arrangeoverride() , shrinkingtabpanel.measureoverride() within respective methods, extending shrinkingtabpanel. i'm not sure if that's smartest idea.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -