Pre loader

Make pane manipulation icons disappear from childpanes

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies