Skip to content

Instantly share code, notes, and snippets.

@Odonno
Created September 10, 2017 13:36
Show Gist options
  • Save Odonno/d18d9864cde04448fe2a14d0cfdccc70 to your computer and use it in GitHub Desktop.
Save Odonno/d18d9864cde04448fe2a14d0cfdccc70 to your computer and use it in GitHub Desktop.
XAML part of the NotificationCenter-like scrolling animation for WIndows Phone
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="Auto" />
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- the title block -->
<Grid Background="#FF5E58C7">
<!-- the title content block -->
</Grid>
<!-- the animated block -->
<StackPanel x:Name="animatedPanel" Grid.Row="1">
<!-- the animated content block -->
</StackPanel>
<!-- button of animation (show / hide animated block) -->
<Button x:Name="animationButton" Grid.Row="2" Background="#FF5E58C7"
Style="{StaticResource TextBlockButtonStyle}"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="24"
FontFamily="Segoe UI Symbol" Text="&#xE108;" />
</Button>
<!-- another block-->
<Grid Grid.Row="3">
<!-- content block -->
</Grid>
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment