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
225
Changing Hieght of ExplorerBar group headers
posted

I'm using the explorer bar in an app and I've got an issue with the HEIGHT of the group headers.

I have set the group headers image to a bitmap 36x36 and the group header height has adjusted to accommodate that.

However, it adjusts a little larger than the image. I've set the group height to 36 and that has no effect.

I've highlighted the group header backcolor in RED to make the problem obvious, but what I really want if for the group color blocks to be adjacent with no padding between them at all.

Any idea's how to accomplish that?

Thanks!

Parents
No Data
Reply
  • 6158
    Suggested Answer
    Offline posted

    Hello Darin,

    The padding around the group header's image is static based on the ViewStyle of the control, so unfortunately, there is no property setting that will allow you to customize it. However, you can use a creation filter to adjust the size and position of the Image UIElement which will allow you to accomplish the desired look. I've attached a sample that demonstrates such a creation filter.

    Let me know if you have any questions.

    Chris

    WindowsFormsApplication1.zip
Children