private void MarkAsRead_Tapped(object sender, EventArgs e) { // Get the message Message message = (Message)((FrameworkElement)sender).DataContext; // Flip it m_collector.ChangeMessageReadStatus(message, !message.IsNew); }
private void MarkAsRead_Tapped(object sender, EventArgs e) { // Get the message Message message = (Message)((FrameworkElement)sender).DataContext; // Flip it m_collector.ChangeMessageReadStatus(message, !message.IsNew); }