CssBoxFrame
CSS box for iframe element. If the iframe is of embedded YouTube or Vimeo video it will show image with play.
Hereda de: CssBox
Constructores
CssBoxFrame(CssBox, HtmlTag)
Init.
- parent
- the parent box of this box
- tag
- the html tag data of this box
Propiedades
IsClickable : bool
Is the css box clickable ("a" element is clickable)
Métodos
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
HandleDataLoadFailure(Exception, string)
Handle error occurred during video data load to handle if the video was not found.
- ex
- the exception that occurred during data load web request
- source
- the name of the video source (YouTube/Vimeo/Etc.)
HandlePostApiCall()
Create image handler for downloading video image if found and release the WebClient instance used for API call.
LoadVimeoDataAsync(Uri)
Load Vimeo video data (title, image, link) by calling Vimeo API.
OnDownloadVimeoApiCompleted(string)
Parse Vimeo API response to get video data (title, image, link).
OnLoadImageComplete(RImage, RRect, bool)
On image load process is complete with image or without update the image box.
- image
- the image loaded or null if failed
- rectangle
- the source rectangle to draw in the image (empty - draw everything)
- refresh
- is the callback was called async to load image call
SetErrorBorder()
Set error image border on the image box.
Campos
_imageLoadHandler : ImageLoadHandler
handler used for image loading by source
_imageLoadingComplete : bool
is image load is finished, used to know if no image is found
_imageWord : CssRectImage
the image word of this image box
_videoImageUrl : string
the url of the video thumbnail image
_videoLinkUrl : string
link to the video on the site
_videoTitle : string
the title of the video