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
180
visual brush as background for chart
posted

I created a resource that contains a visual brush. the items in this brush are a grid (width set to auto), and some other elements. the grid backcolor is black, and I have some other rectangles within the grid.

When I set the chart.background to the resource of the visual brush, the image appears, but there are white gaps to the left and right of the chart. I am trying to find the correct combination, but it is frustrating right now.

What would be the guidelines on creating a visual brush so that the chart background is completely covered by the visual brush? The chart I am creating will vary in size as well, so I wanted something that is similar to the docking option in VB where it resizes automatically to the background border.

Thank you so much for any advise.

 

Parents
  • 30692
    Suggested Answer
    Offline posted

    Hi,

    There are some margins, etc, around the chart. The easiest way to get the background to cover the entire space would be to put the chart in a Grid and set the grid's background to be the VisualBrush. Does that give you the effect you are looking for?

    -Graham

Reply Children