/// <summary> /// Raised when the chat scrolled. /// </summary> /// <param name="sender">The object as sender.</param> /// <param name="e">ChatScrolledEventArgs as e.</param> private void ChatScrolled(object sender, ChatScrolledEventArgs e) { sfChat.CanAutoScrollToBottom = e.IsBottomReached; viewModel.IsBadgeViewVisible = !e.IsBottomReached; if (e.IsBottomReached) { sfBadgeView.BadgeText = string.Empty; this.unReadMessageCount = 0; } }
/// <summary> /// Raised when the chat scrolled. /// </summary> /// <param name="sender">The object as sender.</param> /// <param name="e">ChatScrolledEventArgs as e.</param> private void ChatScrolled(object sender, ChatScrolledEventArgs e) { sfChat.CanAutoScrollToBottom = e.IsBottomReached; viewModel.IsVisible = !e.IsBottomReached; }