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¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| CornerRadius | Gets or sets the CornerRadius. |
| StretchDirection | Gets or sets the stretch direction. |
| SourceUri | Gets or sets the source URI for the GIF image. |
| AutoStart | Gets or sets a value indicating whether to auto-start the animation. |
| RepeatCount | Gets or sets the repeat count for the animation. 0 means infinite. |
| AnimationSpeedRatio | Gets or sets the animation speed ratio. |
| IsAnimating | Gets or sets a value indicating whether the animation is currently playing. |
| CurrentFrameIndex | Gets or sets the current frame index. |
Fields¶
| Name | Summary |
|---|---|
| static CornerRadiusProperty | Property for [CornerRadius](# |
| static StretchDirectionProperty | Property for [StretchDirection](# |
| static SourceUriProperty | Property for [SourceUri](# |
| static AutoStartProperty | Property for [AutoStart](# |
| static RepeatCountProperty | Property for [RepeatCount](# |
| static AnimationSpeedRatioProperty | Property for [AnimationSpeedRatio](# |
| static IsAnimatingProperty | Property for [IsAnimating](# |
| static CurrentFrameIndexProperty | Property for [CurrentFrameIndex](# |
Methods¶
| Name | Summary |
|---|---|
| StartAnimation | Starts the GIF animation. |
| StopAnimation | Stops the GIF animation. |
| PauseAnimation | Pauses the GIF animation. |
| ResetAnimation | Resets the animation to the first frame. |