I have refer the image using relative path reference ("pack://application:,,,/Images/LoadingBlocks.gif") as mentioned. But image not able to loaded while running the application.
if i give the absolute image path, which working fine. that is
("C:\Users\Documents\Visual Studio 2015\Projects\WpfApplication2\WpfApplication2\Images\LoadingBlocks.gif)
or
("....\Images\LoadingBlocks.gif")
Please find my code snippet and sample then suggest your opinion for refer the image from the solution itself.
<toolkit:BusyIndicator Name="BusyIndicator" Loaded="BusyIndicator_Loaded" DisplayAfter="0" IsBusy="False">
<toolkit:BusyIndicator.BusyContentTemplate>
<DataTemplate>
<StackPanel Height="100" Width="100" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Center">
<MediaElement MediaEnded="myGif_MediaEnded" UnloadedBehavior="Manual" Source="pack://application:,,,/Images/LoadingBlocks.gif" LoadedBehavior="Play">
<MediaElement.OpacityMask>
<ImageBrush ImageSource="pack://application:,,,/Images/LoadingBlocks.gif"/>
</MediaElement.OpacityMask>
</MediaElement>
</StackPanel>
</DataTemplate>
</toolkit:BusyIndicator.BusyContentTemplate>
<toolkit:BusyIndicator.OverlayStyle>
<Style TargetType="Rectangle">
<Setter Property="Fill" Value="Transparent"/>
</Style>
</toolkit:BusyIndicator.OverlayStyle>
<toolkit:BusyIndicator.ProgressBarStyle>
<Style TargetType="ProgressBar">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
</toolkit:BusyIndicator.ProgressBarStyle>
<toolkit:BusyIndicator.Background>
<SolidColorBrush Color="Transparent"/>
</toolkit:BusyIndicator.Background>
</toolkit:BusyIndicator>
sample: https://ufile.io/zdm6r
or