question

MarkMather-7608 avatar image
0 Votes"
MarkMather-7608 asked ·

How Do I input Carousel onto a sidebar?

I have a sidebar that I was helped with, I Want to add a website carousel of open tabs?

Example:

https://help.syncfusion.com/uwp/carousel/getting-started

here is a screenshot of the sidebar:

7985-caro.png



I also provided the code below:

   <Grid x:Name="sidepanel"  Width="300" HorizontalAlignment="Left" Margin="0,-1,0,135">
             <Grid.RenderTransform>
                 <TranslateTransform x:Name="myTransform" X="-500" Y="100" />
             </Grid.RenderTransform>
             <TextBox Text="Open Tabs" Margin="0,0,10,0">
                 <TextBox.Background>
                     <AcrylicBrush FallbackColor="#FF818181"/>
                 </TextBox.Background>
             </TextBox>
    
         </Grid>
     </Grid>

and:

 <Page.Resources>
         <!--animation to hide the panel-->
         <Storyboard x:Name="myStoryboard">
             <DoubleAnimation
         Storyboard.TargetName="myTransform"
         Storyboard.TargetProperty="X"
         From="0" To="-500" Duration="0:0:1"  />
         </Storyboard>
    
         <!--animation to show the panel-->
         <Storyboard x:Name="myStoryboard2">
             <DoubleAnimation
         Storyboard.TargetName="myTransform"
         Storyboard.TargetProperty="X"
         From="-500" To="0" Duration="0:0:1"  />
         </Storyboard>
     </Page.Resources>

and:


 public bool IsOpen = false;
    
         private void Open_Panel_Click(object sender, RoutedEventArgs e)
         {
                
             if (!IsOpen)
             {
                 myStoryboard2.Begin();
                 IsOpen = !IsOpen;
             }
             else
             {
                 myStoryboard.Begin();
                 IsOpen = !IsOpen;
             }
    
         }




not-supported
caro.png (258.6 KiB)
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, the topics supported by the Q&A platform are currently listed in the upper right corner of the page. Your question relates to third-party controls and is not within the scope of support. If you are confused about how to integrate the control, you can read the documentation provided by the third-party control.

Thanks.

0 Votes 0 · ·

0 Answers