-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. jQuery中加載層
- 4. 「加載數據」
- 5. 加載數據
- 6. 加載數據
- 7. 加載數據
- 8. 加載數據
- 9. UITableViewController沒有加載頂層單元格的數據
- 10. 實體框架查詢加載分層數據
- 11. 在UITableView中加載新數據時重疊圖層
- 12. 無法加載網格中的分層數據。 0 items
- 13. MVP - 演示者是否從數據層加載數據並轉換爲模型?
- 14. Drupal加載層次結構
- 15. 加載數據集
- 16. 加載數據infl
- 17. 加載數據infl
- 18. jqGrid數據加載
- 19. 解析JSON Windows8
- 20. 如何在Windows8中
- 21. Django datatables加載ajax數據加載
- 22. 在表單上加載數據庫的多個數據加載
- 23. 如果數據已經加載,停止從.json加載數據
- 24. 分層數據 - 遞歸CTE加PIVOT?
- 25. 動態加入分層數據
- 26. 分層數據
- 27. 數據表 - 預加載數據的第一頁,而完整數據集加載
- 28. 密碼加密/數據庫層AES或應用層AES
- 29. Ajax Call Windows8權限
- 30. Asp.NET Apple Android Windows8手機GUI
它完美:)謝謝 – 2013-04-29 16:36:03
歡迎您:) – Xyroid 2013-04-29 16:41:07