Last active
November 5, 2015 10:11
-
-
Save jcmm33/0f558abaf4385c82caed to your computer and use it in GitHub Desktop.
ScrollViewer in flipview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed partial class MainPage : Page | |
{ | |
public MainPage() | |
{ | |
this.InitializeComponent(); | |
this.Loaded += MainPage_Loaded; | |
} | |
private void MainPage_Loaded(object sender, RoutedEventArgs e) | |
{ | |
this.scrollViewer.AddHandler(UIElement.ManipulationStartedEvent, new ManipulationStartedEventHandler(scroller_Manipulated), true); | |
this.scrollViewer.ManipulationMode = ManipulationModes.All; | |
} | |
private void scroller_Manipulated(object sender, ManipulationStartedRoutedEventArgs e) | |
{ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FlipView x:Name="flipViewX" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="266"> | |
<FlipViewItem x:Name="Item1"> | |
<ScrollViewer x:Name="scrollViewer"> | |
<StackPanel x:Name="stack"> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
</StackPanel> | |
</ScrollViewer> | |
</FlipViewItem> | |
<FlipViewItem x:Name="Item2" > | |
<TextBlock Text="THIS IS TEXT"></TextBlock> | |
</FlipViewItem> | |
</FlipView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment