I downloaded WPFAnimatedGiff.dll from codeplex. And here is the problem: I'm trying to implement the giff inside of tab item. The giff is actually a circular progress bar, so I'm trying to simulate loading process of the tab item similar to google chrome progress bar. I inserted the image, and it is visible in designer, but it does not show up when I run my application. Also when I insert image somewhere else in grid, it does show up. Here is the code:
<Window x:Class="WPFHotel.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WPFHotel"
xmlns:data="clr-namespace:WPFHotel.Database"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:gif="http://wpfanimatedgif.codeplex.com" />
<TabItem Tag="PB1" Header="Rezervacije" Name="Reservations" BorderBrush="Black" FontFamily="Times New Roman" FontWeight="Bold" FontSize="14">
<TabItem.HeaderTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rezervacije" Margin="5,2,0,0" />
<Image gif:ImageBehavior.AnimatedSource="Images/468.gif" Stretch="None" />
</StackPanel>
</DataTemplate>
</TabItem.HeaderTemplate>
</TabItem>
Tried to google for the solution but could not find anything useful, so I hope some one can help me here. Edit: Just to mention that when I insert the image like this:
<Image Source="Images/CircleBar.gif" />
It is shown when application runs but there is no spin/animation.