示例#1
0
 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);
 }