Ejemplo n.º 1
0
 private void SetPageVisualStatus(double pageWidth)
 {
     if (pageWidth < 1366)
     {
         Sb_CommentHiddenVIew.Begin();
         isCommentTemperarorilyShown = false;
     }
     else
     {
         Sb_CommentShownVIew.Begin();
         isCommentTemperarorilyShown = false;
     }
     CommentButton.Content = isCommentTemperarorilyShown ? loader.GetString("CommentTextblockText_Status2") : loader.GetString("CommentTextblockText_Status1");
 }
Ejemplo n.º 2
0
 private void SetPageVisualStatus(SizeChangedEventArgs e)
 {
     if (e.NewSize.Width < 1366)
     {
         Sb_CommentHiddenVIew.Begin();
         isCommentTemperarorilyShown = false;
     }
     else
     {
         Sb_CommentShownVIew.Begin();
         isCommentTemperarorilyShown = false;
     }
     CommentButton.Content = isCommentTemperarorilyShown ? loader.GetString("CommentTextblockText_Status2") : loader.GetString("CommentTextblockText_Status1");
 }