public GroupCallParticipantGridCell(ICacheService cacheService, GroupCallParticipant participant, GroupCallParticipantVideoInfo videoInfo, bool screenSharing) { _screenSharing = screenSharing; InitializeComponent(); UpdateGroupCallParticipant(cacheService, participant, videoInfo); if (screenSharing) { ScreenSharing.Text = Icons.SmallScreencastFilled; } var header = ElementCompositionPreview.GetElementVisual(Header); header.Opacity = 0; }
public bool IsMatch(GroupCallParticipant participant, GroupCallParticipantVideoInfo videoInfo) { return(participant != null && participant.ParticipantId.IsEqual(ParticipantId) && _videoInfo.EndpointId == _videoInfo.EndpointId); }