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.
Unfortunately, activation email could not send to your email. Please try again.

Cannot swipe when charts are in PivotItem in UWP

Thread ID:

Created:

Updated:

Platform:

Replies:

123991 May 5,2016 02:24 PM May 9,2016 06:22 AM UWP 3
loading
Tags: SfChart
Daniel
Asked On May 5, 2016 02:24 PM

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.

Samuel Rajadurai Edwin Rajamanickam [Syncfusion]
Replied On May 6, 2016 03:28 PM

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 


Daniel
Replied On May 6, 2016 03:55 PM

Works perfectly!!! 

Thanks Samuel for the help and the example.

Regards,
Daniel.

Samuel Rajadurai Edwin Rajamanickam [Syncfusion]
Replied On May 9, 2016 06:22 AM

Hi Daniel,

Thanks for the update.

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

Regards,
Samuel

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;