I'm trying to set up my graphing controls hide many features when minimized and show them when maximized. For some reason; i'm getting an exception when I attempt to hide the Y-Axis in my 2-d recording. Any ideas what I can do about this?
System.ArgumentOutOfRangeException occurred
HResult=-2146233086
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source=mscorlib
ParamName=index
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
InnerException:
Thanks!
ViewXY null reference exception when setting axis.visible
Moderator: Queue Moderators
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY null reference exception when setting axis.visibl
Please update to 6.0.5 and let me know if the problem persists.
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: ViewXY null reference exception when setting axis.visibl
That worked, thanks! I also had to make a small change, since the 'ownerview' got moved to read-only
Was I using it incorrectly there originally?
Was I using it incorrectly there originally?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY null reference exception when setting axis.visibl
The view object is intended to be given as constructor parameter. To prevent misunderstandings OwnerView was made read-only.
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: ViewXY null reference exception when setting axis.visibl
Going back to this; I'm thinking the root cause was me accidentally using Suspend/Resume Layout instead of Begin/End Update.