Skip to content

GifImage class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.GifImage Modifiers: public

Summary

        Represents an image control with GIF animation support and additional properties.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class GifImage
class Image
Image <|-- GifImage

Inherits from: Image

Constructors

NameSummary
.ctor

Properties

NameSummary
CornerRadiusGets or sets the CornerRadius.
StretchDirectionGets or sets the stretch direction.
SourceUriGets or sets the source URI for the GIF image.
AutoStartGets or sets a value indicating whether to auto-start the animation.
RepeatCountGets or sets the repeat count for the animation. 0 means infinite.
AnimationSpeedRatioGets or sets the animation speed ratio.
IsAnimatingGets or sets a value indicating whether the animation is currently playing.
CurrentFrameIndexGets or sets the current frame index.

Fields

NameSummary
static CornerRadiusPropertyProperty for [CornerRadius](#
static StretchDirectionPropertyProperty for [StretchDirection](#
static SourceUriPropertyProperty for [SourceUri](#
static AutoStartPropertyProperty for [AutoStart](#
static RepeatCountPropertyProperty for [RepeatCount](#
static AnimationSpeedRatioPropertyProperty for [AnimationSpeedRatio](#
static IsAnimatingPropertyProperty for [IsAnimating](#
static CurrentFrameIndexPropertyProperty for [CurrentFrameIndex](#

Methods

NameSummary
StartAnimationStarts the GIF animation.
StopAnimationStops the GIF animation.
PauseAnimationPauses the GIF animation.
ResetAnimationResets the animation to the first frame.
Inherited members