Darf Zon
Darf Zon

Reputation: 6378

How can the width of a chart in wpf be adjusted?

I am using the chart control from the WPF Toolkit. My question is simple, when my chart is displayed, the column is expanded to the width of the screen.

Is there a way to specify a maximum width? Thanks in advance.

Upvotes: 0

Views: 612

Answers (1)

ColinE
ColinE

Reputation: 70122

You can specify a width explicitly via the Width property, or allow an element to expand up to a certain size via the MaxWidth property. These properties are common to all UI elements, not just charts.

See the FrameworkElement documentation.

Upvotes: 1

Related Questions