Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Can't switch tabs in wrapped UltraTabControl
posted
I am wrapping UltraTabControl by dropping it onto UserControl. So  MyTabControl inherits from UserControl and there is 

private Infragistics.Win.UltraWinTabControl.UltraTabControl ultraTabControl1;     in  mytabcontrol.designer.cs   file.

In this case at design time   it is not possible to switch tabs, add controls to tabs or implement any UI actions on the UktraTabControl.

In order to "deliver" Click to the UltraTabControl  I  create   MyDesigner that inherits from ParentControlDesigner and attach it to the MyTabControl.

Then, I override GetHitTest(), check if my mouse click happens withing tab rectangle and return true, which suppose to "deliver" Click to the UltraTabControl.   

This approach does Not work with UltraTabControl, but works with Windows TabControl.

How do I do that for UltraTabControl?

Is there any other approach to get UI functionality at design time for wrapped UltraTabControl ?

Thank you

 

 

 

Parents
  • 44743
    posted

    I tried going down a few paths to implement a designer for a wrapped UltraTabControl, but it results in many problems.  I would suggest trying to find an alternate approach for this.

Reply Children