Hi!
Is there any way to remove the default buttons on the childpanes
(i.e. make them disappear completly)?
Kristóf
- Kristóf Czimer asked 9 years ago
- You must login to post comments
Hi Kristóf,
Thanks for your inquiry. The buttons are located in the header of every pane, which is defined by the HeaderTemplate property of SciChartGroupPane. You can change it in a Style for SciChartGroupPane, which can be applied via the ItemContainerStyle property on SciChartGroup, as it is demoed in the “Create Multi Pane Stock Chart” example.
You could modify the header as follows to remove the buttons:
<Style x:Key="ChartPaneStyle" TargetType="s:SciChartGroupPane">
<Setter Property="HeaderTemplate">
<Setter.Value>
<DataTemplate>
<Grid VerticalAlignment="Center" Background="{x:Null}">
<TextBlock Margin="10, 2"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Text="{Binding PaneViewModel.Title}">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{markupExtensions:ThemeBinding Path=TickTextBrush}" />
</Style>
</TextBlock.Style>
</TextBlock>
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
Please try it out and let us know if you have further questions,
Best regards,
Yuriy
- Yuriy Zadereckiy answered 9 years ago
- You must login to post comments
Please login first to submit.