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"); }
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"); }