Size (in pixels) of ViewXY

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Siike
Posts: 4
Joined: Mon Feb 24, 2014 7:37 am

Size (in pixels) of ViewXY

Post by Siike » Mon Feb 24, 2014 7:41 am

Hi,

I need to know the width and height of the chart area in pixels. Any idea on how to do this?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Size (in pixels) of ViewXY

Post by ArctionPasi » Mon Feb 24, 2014 7:54 am

Hi,

Use these.

width = chart.ActualWidth - chart.ViewXY.Margins.Left - chart.ViewXY.Margins.Right
height = chart.ActualHeight - chart.ViewXY.Margins.Top- chart.ViewXY.Margins.Bottom
LightningChart Support Team, PT

Siike
Posts: 4
Joined: Mon Feb 24, 2014 7:37 am

Re: Size (in pixels) of ViewXY

Post by Siike » Tue Mar 18, 2014 6:38 am

These work well, my thanks.

Post Reply