Welcome Guest Search | Active Topics | Sign In | Register

Simple Way to Eliminate Left/Right margin in TabbedBrowser Options
WinkyB
Posted: Friday, February 13, 2015 2:44:26 PM
Rank: Newbie
Groups: Member

Joined: 2/13/2015
Posts: 2
I'm just getting started with the TabbedBrowser project and am struggling trying to find a way to make certain elements look more exactly like Chrome does.

In specific, the sample application has an extra border/margin in the main area of the tab control that prevents loaded pages from filling up the entire available area. There's maybe 5-10 extra pixels on the right and left, unlike Chrome.

This seems to be related to the VS2012 skin used for the DockContainer.

Is there a simple way to override the margin/border settings without going through the overhead of creating a new skin? I'm tried explicitly setting those properties in the code, but with no success.

It seems like this should be a simple property adjust, so I'm assuming that there is an easy way, and I'm just missing what that way is so far.

Thanks for the help!
eo_support
Posted: Friday, February 13, 2015 4:59:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This margin is not introduced by the DockContainer control. It's by the TabControl (The Window contains TabControl, the TabControl contains the DockContainer control). You can set the TabControl's Padding to control the padding between the tab control frame and tab page content.

Thanks!
WinkyB
Posted: Tuesday, February 17, 2015 1:43:14 PM
Rank: Newbie
Groups: Member

Joined: 2/13/2015
Posts: 2
Thanks for the reply.

I had tried this already and just tried it again to make sure. Changing the padding on the TabControl has no effect on this extra space. You can try changing this value in the TabbedBrowser project and you'll see what I mean.

Any other ideas? I could be wrong, but it really seems like this margin is introduced by the skin of the DockContainer.
eo_support
Posted: Tuesday, February 17, 2015 2:01:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

We do not have anything else to tell you on this. As far as we know that padding is introduced by the TabControl's Padding property, it has a default value of 4.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.