SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

Answered
0
0

Hi!

Is there any way to remove the default buttons on the childpanes
(i.e. make them disappear completly)?

Kristóf

Images
  • You must to post comments
Best Answer
0
0

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

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.