Hello everybody,
I hope you are fine,
I am working with DatapointeselectionModifier on a tablet windows.
I want to be able to select multiple points without pressing Left Ctrl keyboard.
Can you help me please?
Thank you very much.
- You must login to post comments
You’d have to override DataPointSelectionModifier.GetSelectionMode and return SelectionMode.Union to enable multi-select.
This is the definition of GetSelectionMode in DataPointSelectionModifier.
protected virtual SelectionMode GetSelectionMode(MouseModifier modifierKey, bool isAreaSelection)
{
var selectionMode = SelectionMode.Replace;
if (!AllowsMultiSelection)
{
return selectionMode;
}
switch (modifierKey)
{
case MouseModifier.Ctrl:
selectionMode = isAreaSelection ? SelectionMode.Union : SelectionMode.Inverse;
break;
case MouseModifier.Shift:
selectionMode = SelectionMode.Inverse;
break;
}
return selectionMode;
}
Let me know if this helps.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
- You must login to post comments
Correction, Where can I put :
protected override SelectionMode GetSelectionMode()
{
var selectionMode = SelectionMode.Union;
return selectionMode;
}
and call it like I am working with MVVM,
Thank you very much
- Princy Ramanda Andriampaniry answered 4 years ago
-
You have to create a class that inherits DatapointeselectionModifier, override GetSelectionMode, then set that modifier on your SciChartSurface. MVVM or not its the same technique.
- You must login to post comments
Normally, it works but I am programming with MVVM.
In this case, where can I put this method and where do I need to call the “GetSelection(SelectionMode.Ctrl,false);” ?
Thank you very much Mr Burnett,
Best regards,
Princy
- Princy Ramanda Andriampaniry answered 4 years ago
- You must login to post comments
I am considering applying server-side licensing for my javerScript application.
In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)
However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)
I wonder if there is a sample code implemented in C++ for server-side licensing.
Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?
- Princy Ramanda Andriampaniry answered 4 years ago
- You must login to post comments
Please login first to submit.