public override bool OnBackPressed() { if (WebPopUp.Visibility == Visibility.Visible) { WebPopUp.HidePopUp(); return(true); } else if (PlayerPopUp.Visibility == Visibility.Visible) { PlayerPopUp.HidePopUp(); return(true); } return(false); }
private void Image_Tapped(object sender, TappedRoutedEventArgs e) { if (sender is FrameworkElement fElem) { if (fElem.DataContext is ChatMessageViewModel message) { if (message.MessageType == MessageTypes.Photo && !string.IsNullOrEmpty(message.MessageAditionalData)) { WebPopUp.RequestPage(DataSource.requestUriString + message.MessageAditionalData); } else if (message.MessageType == MessageTypes.Video && !string.IsNullOrEmpty(message.MessageAditionalData)) { PlayerPopUp.RequestVideo(message.MessageAditionalData); } } } }