コード例 #1
0
ファイル: ucSettings.cs プロジェクト: pearorgn/test
 void OnContentContainerActivated(object sender, ContentContainerEventArgs e)
 {
     if (e.ContentContainer is Page)
     {
         ActivationTimer.Start();
     }
 }
コード例 #2
0
 private async void windowsUIViewMain_ContentContainerActivated(object sender, ContentContainerEventArgs e)
 {
     if (Authentication.Credentials == null) return;
     RebuildNavBar(e.ContentContainer);
     if (e.ContentContainer == tileContainerMain && Authentication.Credentials.IsRegion)
     {
         using (var repo = new Repository())
         {
             var count = await repo.GetUnreadMessagesCount();
             tileMessageList.Elements[0].Text = count.ToString();
         }
     }
     if (e.ContentContainer == tileContainerMain)
         windowsUIViewMain.ActivateContainer(tileContainerMain);
 }