I download Xamarin.FFImageLoading.Forms
in Nuget, the discription says it support uwp. I followed FFImageLoading/samples/Simple.WinUniversal.Sample/
, and in MainPage.xaml, refered
xmlns:ff="using:FFImageLoading"
xmlns:fft="using:FFImageLoading.Transformations"
I want to use FFImage
, so
<ff:FFImage Name="Image"
Grid.Row="1"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
TransformPlaceholders="False"
LoadingPlaceholder="loading.png"
ErrorPlaceholder="error.png"
CacheDuration="30"
RetryCount="3"
RetryDelay="250"
Height="500"
Width="500"
DownsampleToViewSize="True"
DownsampleMode="None"
Source="http://loremflickr.com/600/600/nature?filename=simple.jpg">
</ff:FFImage>
But the designer shows
Unknown type 'FFImage' in XML namespace 'using:FFImageLoading'
So, what's the correct way to use FFImage
. Thx.
How to use FFImageLoading's FFImage in uwp project
Please check this line, it is Xamarin.Froms control, it could not be used in native uwp project.
For uwp platform we suggest use ImageEX to replace that one. For more please refer this document .
<controls:ImageEx x:Name="ImageExControl1"
IsCacheEnabled="True"
Source="/Assets/Photos/LunchBreak.jpg"
PlaceholderSource="/Assets/Photos/ImageExPlaceholder.jpg"
Style="{StaticResource BaseStyle}"/>