Occurs when the frame changes during animation playback.
public event EventHandler<Leadtools.Controls.RasterPictureBoxFrameChangedEventArgs> FrameChanged Public Event FrameChanged As EventHandler(Of Leadtools.Controls.RasterPictureBoxFrameChangedEventArgs) public:event EventHandler<Leadtools::Controls::RasterPictureBoxFrameChangedEventArgs^>^ FrameChanged
This event is raised if the AnimationMode property is changed by either a programmatic modification or user interaction.
using Leadtools;using Leadtools.Controls;using Leadtools.Codecs;using Leadtools.Drawing;using LeadtoolsExamples.Common;public void RasterPictureBox_AnimationModeChanged(){RasterPictureBox viewer = new RasterPictureBox();viewer.PropertyChanged += viewer_PropertyChanged;switch (viewer.AnimationMode){case RasterPictureBoxAnimationMode.Infinite:viewer.AnimationMode = RasterPictureBoxAnimationMode.UseImageGlobalLoop;break;case RasterPictureBoxAnimationMode.UseImageGlobalLoop:viewer.AnimationMode = RasterPictureBoxAnimationMode.Infinite;break;}viewer.PlayAnimation();viewer.PropertyChanged -= viewer_PropertyChanged;}private void viewer_PropertyChanged(object sender, PropertyChangedEventArgs e){if (e.PropertyName == "AnimationMode"){RasterPictureBox viewer = sender as RasterPictureBox;string s = string.Format("AnimationModeChanged Event: {0}", viewer.AnimationMode.ToString());MessageBox.Show(s);}}
Imports LeadtoolsImports Leadtools.ControlsImports Leadtools.CodecsImports Leadtools.DrawingPrivate Sub viewer_PropertyChanged(ByVal sender As Object, ByVal e As PropertyChangedEventArgs)If e.PropertyName = "AnimationMode" ThenDim viewer As RasterPictureBox = TryCast(sender, RasterPictureBox)Dim s As String = String.Format("AnimationModeChanged Event: {0}", viewer.AnimationMode.ToString())MessageBox.Show(s)End IfEnd Sub<TestMethod>Public Sub RasterPictureBox_AnimationModeChanged_Runner()RasterPictureBox_AutoDisposeImage(New RasterPictureBox())End SubPublic Sub RasterPictureBox_AnimationModeChanged(ByVal viewer As RasterPictureBox)AddHandler viewer.PropertyChanged, AddressOf viewer_PropertyChangedSelect Case viewer.AnimationModeCase RasterPictureBoxAnimationMode.Infiniteviewer.AnimationMode = RasterPictureBoxAnimationMode.UseImageGlobalLoopCase RasterPictureBoxAnimationMode.UseImageGlobalLoopviewer.AnimationMode = RasterPictureBoxAnimationMode.InfiniteEnd Selectviewer.PlayAnimation()RemoveHandler viewer.PropertyChanged, AddressOf viewer_PropertyChangedEnd Sub
| Parameter | Type | Description |
|---|---|---|
| sender | object | The source of the event. |
| e | RasterPictureBoxFrameChangedEventArgs | The event data. |
|
Products |
Support |
Feedback: FrameChanged Event (RasterPictureBox) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.