We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Cannot swipe when charts are in PivotItem in UWP

Hello for all... 

I have the problem that I can swipe the pivot control with the charts inside the PivotItems.

I don´t know if is a bug or exists a solution.

This is the XAML that i use:

<Pivot Grid.Row="1" x:Name="rootPivot" Margin="0,0,10,0">
                        <PivotItem>
                            <PivotItem.Header>
                                <TextBlock Text="Frecuencia menstruación" Foreground="Black" FontSize="16"/>
                            </PivotItem.Header>
                            <syncfusion:SfChart x:Name="chart" >
                                <syncfusion:SfChart.PrimaryAxis>
                                    <syncfusion:CategoryAxis/>
                                </syncfusion:SfChart.PrimaryAxis>
                                <syncfusion:SfChart.SecondaryAxis>
                                    <syncfusion:NumericalAxis Interval="5" Header="Días"/>
                                </syncfusion:SfChart.SecondaryAxis>
                            </syncfusion:SfChart>
                        </PivotItem>
                        <PivotItem>
                            <PivotItem.Header>
                                <TextBlock Text="Prueba de otra gráfica" Foreground="Black" FontSize="16"/>
                            </PivotItem.Header>
                            <Grid Width="500" HorizontalAlignment="Left" VerticalAlignment="Top">

                            </Grid>
                        </PivotItem>
                    </Pivot>


Thanks in advice.

3 Replies

SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team May 6, 2016 07:28 PM UTC

Hi Daniel, 
Thanks for contacting Syncfusion Support. 
Swiping can be done in the pivot control with chart inside. It can be achieved by setting IsHitTestVisible property false. 
Code Snippet: 
[XAML] 
 
<syncfusion:SfChart x:Name="chart" IsHitTestVisible="False"> 
 
 
 
</syncfusion:SfChart> 
 

We have also prepared a sample for achieving this requirement. Please find the sample from the link below.
UWP_Pivot_2 
Please note by making this property false, suppresses the interactive behaviors of the chart. We are analyzing on this to provide you the swipe functionality with chart interactive behaviors as early as possible. 
Regards,
Samuel 



DA Daniel May 6, 2016 07:55 PM UTC

Works perfectly!!! 

Thanks Samuel for the help and the example.

Regards,
Daniel.


SR Samuel Rajadurai Edwin Rajamanickam Syncfusion Team May 9, 2016 10:22 AM UTC

Hi Daniel,

Thanks for the update.

Please let us know if you need any further assistance on this.

Regards,
Samuel

Loader.
Up arrow icon