private void OnAttachmentTapped() { var url = _viewModelRef.Target?.Model?.ImageRemoteUrl; if (string.IsNullOrEmpty(url)) { return; } var options = new FullScreenImageOptions { CloseButtonTintColor = Common.iOS.Extensions.UIColorExtensions.ToHex(StyleHelper.Style.ButtonTintColor), ImageUrl = url, IosCloseButtonImageBundleName = StyleHelper.Style.CloseButtonImageBoundleName }; _viewModelRef.Target?.ShowImage(options); }
private void OnMessageImageClicked(object sender, EventArgs e) { if (sender is MvxCachedImageView mvxCachedImage && mvxCachedImage.Drawable is VectorDrawable) { return; // ignore placeholder } var url = _viewModelRef.Target?.Model?.ImageRemoteUrl; if (url == null) { return; } var options = new FullScreenImageOptions { ImageUrl = url, DroidCloseButtonImageResId = Resource.Drawable.core_ic_close }; _viewModelRef.Target?.ShowImage(options); }