Can you post the style definitions for the current eight standard themes? I would like to create two new themes that are close to existing, with several color and configuration tweaks.
I understand these themes may change with later versions, but having snapshots of the 4.1 or 4.2 versions as a starting point would be a tremendous time saver.
Bill
- William Lear asked 8 years ago
- You must login to post comments
Hi Alex
Clamping Axis.Visiblerange
in SciChart WPF can be achieved with a VisibleRangeChanged
event handler
Take a look at Clipping the Axis.VisibleRange on Zoom and Pan
Clipping Axis.VisibleRange in Code To clip the VisibleRange and force a certain maximum or minimum, just use the following code:
axis.VisibleRangeChanged += (s, e) => { // e is VisibleRangeChangedEventArgs // Assuming axis is NumericAxis if (e.NewVisibleRange != null && e.NewVisibleRange.Min < 0) { // Force minimum visiblerange to zero always ((NumericAxis)sender).VisibleRange = new DoubleRange(0, e.NewVisibleRange.Max); } };
There are other methods in there such as using VisibleRangeLimit
but these have their limitations (no pun intended), such as not clamping when user zoom/pan occurs
- Andrew Burnett-Thompson answered 8 years ago
- last edited 1 month ago
- You must login to post comments
Ok, I can put together a utility program to dump the Theme definitions. I prefer to have actual themes, since (per my previous posts), I want to switch themes when exporting the plot to a bitmap, then switch back. Different plots in the application will have different theme pairs.
- William Lear answered 8 years ago
- You must login to post comments
Please login first to submit.