Guys I m trying to minimize all child pane in multi-pane charts by default i am not able to do that please help me
i want same like in image attached below.
please reply as soon as possible.
- vinay khandelwal asked 9 years ago
- last edited 9 years ago
- You must login to post comments
Hi there,
Unfortunately there is no built in way to do this with current implementation of SciChartGroup. But you could use custom SciChartGroup which provides desired behavior:
public class MinimizedSciChartGroup : SciChartGroup
{
private StackPanel _stackPanel;
public MinimizedSciChartGroup()
{
Loaded+=OnLoaded;
}
private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
{
foreach (var pane in _stackPanel.Children.OfType<SciChartGroupPane>().ToList())
{
var itemPane = pane.DataContext as ItemPane;
if (itemPane != null)
{
itemPane.ChangeOrientationCommand.Execute(null);
}
}
Loaded -= OnLoaded;
}
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
_stackPanel = GetTemplateChild("PART_StackedContent") as StackPanel;
}
}
Hope it helps!
- Yura Khariton answered 9 years ago
- You must login to post comments
thanks a lot YURA for replying
sorry i am not able to understand that how to use the above code can you explain it .
- vinay khandelwal answered 9 years ago
-
You just need to replace usage of SciChartGroup control on MinimizedSciChartGroup in XAML and this should do the trick.
- You must login to post comments
Please login first to submit.