Skip to content

Instantly share code, notes, and snippets.

@jamesmcroft
Last active January 3, 2016 20:43
Show Gist options
  • Save jamesmcroft/246c5ac3b7006524972c to your computer and use it in GitHub Desktop.
Save jamesmcroft/246c5ac3b7006524972c to your computer and use it in GitHub Desktop.
<Grid AllowDrop="True" DragOver="OnFileDragOver" DragLeave="OnFileDragLeave" Drop="OnFileDrop">
<GridView x:Name="FileList" ItemsSource="{Binding Files}" IsItemClickEnabled="True" SelectionMode="None" />
<RelativePanel x:Name="AddFilePanel" Background="#44000000" Visibility="Collapsed">
<SymbolIcon x:Name="AddSymbol" Symbol="Add" RelativePanel.AlignVerticalCenterWithPanel="True" RelativePanel.AlignHorizontalCenterWithPanel="True" Foreground="White" RenderTransformOrigin="0.5,0.5">
<SymbolIcon.RenderTransform>
<CompositeTransform ScaleX="1.5" ScaleY="1.5"/>
</SymbolIcon.RenderTransform>
</SymbolIcon>
<TextBlock RelativePanel.Below="AddSymbol" RelativePanel.AlignHorizontalCenterWithPanel="True" Margin="0,12,0,0" Text="Add file to view" Foreground="White" FontSize="24"></TextBlock>
</RelativePanel>
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment