-3
A
回答
0
XAML
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<!-- Data will be loaded in GridView -->
<GridView />
<!-- Black layer with progress ring -->
<Border x:Name="border" BorderBrush="Black" BorderThickness="1" Opacity="0.95" Background="Black" Visibility="Collapsed">
<ProgressRing HorizontalAlignment="Center" VerticalAlignment="Center" IsActive="True" Width="100" Height="100" />
</Border>
<!-- Visual state will switch black layer and GridView -->
<VisualStateManager.VisualStateGroups>
<VisualStateGroup>
<VisualState x:Name="Normal" />
<VisualState x:Name="Dark">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>
C#
protected override void OnNavigatedTo(NavigationEventArgs e)
{
VisualStateManager.GoToState(this, "Dark", true);
//TODO: Load Data
VisualStateManager.GoToState(this, "Normal", true);
}
相关问题
- 1. Treeview加载分层数据
- 2. 加载WMS层
- 3. SQLiteMetro Windows8分贝没有存储数据
- 4. jQuery中加载层
- 5. 加载数据
- 6. 加载数据
- 7. 加载数据
- 8. 数据加载
- 9. 加载数据
- 10. 加载数据
- 11. 加载数据
- 12. 加载数据
- 13. “加载数据”
- 14. 数据加载
- 15. C#,EF,多层次的继承,数据将不会加载
- 16. 在UITableView中加载新数据时重叠图层
- 17. Openlayers 3 - 将几何数据加载到矢量层
- 18. 无法加载网格中的分层数据。 0 items
- 19. 使用NHibernate/C从数据库预加载树/层次结构#
- 20. 为加载网格数据的N层体系结构?
- 21. 实体框架查询加载分层数据
- 22. UITableViewController没有加载顶层单元格的数据
- 23. 如何在将geoJSON加载到数据层时捕获异常
- 24. 加载数据时向下动态滚动DIV层
- 25. MVP - 演示者是否从数据层加载数据并转换为模型?
- 26. 在本地html中的图像无法加载到Windows8的webview
- 27. AJAX JQuery加载KML图层
- 28. Drupal加载层次结构
- 29. Dom加载层次结构
- 30. 加载数据infl
它完美:)谢谢 – 2013-04-29 16:36:03
欢迎您:) – Xyroid 2013-04-29 16:41:07