Hi friend this is the very new example of gif image which will be run in wpf application. I will show you complete example source code for running gif image in this demo.
Main window.
Main window.
<Window x:Class="gifImagedemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:gif="http://wpfanimatedgif.codeplex.com"
gif:ImageBehavior.AnimateInDesignMode="True"
Title="MainWindow" Height="570.37" Width="525">
<StackPanel>
<Image Name="processgif" gif:ImageBehavior.RepeatBehavior="Forever" gif:ImageBehavior.AnimatedSource="Get-Ready.gif"/>
</StackPanel>
</Window>
This code snippets is sufficient to run gif image in wpf.
Output:
0 comments:
Post a Comment