- March 21, 2007
- 2,290
- 1,872
- Home Country
- United Kingdom
- Moderator
- #1
This plugin adds a new type of ImageSource to MediaPortal 2 which allows skinners to implement smooth transitions and delayed loading of images.
The ImageSourceWrapper inherits from MultiImageSource so has all of its properties plus:
Installation: Extract the attached zip to the MP2 client plugin directory
Example usage:
The ImageSourceWrapper inherits from MultiImageSource so has all of its properties plus:
- Delay: The amount of time in seconds to delay the loading of images, useful for avoiding loading lots of images when scrolling quickly
- DelayInOut: Whether the delay should apply when transitioning to or from null
- Source: The primary image source, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource)
- FallbackSource: The image source to use if the primary source cannot be loaded, can either be a path to an image or an ImageSource that has a Uri property (MultiImageSource or BitmapImageSource)
Installation: Extract the attached zip to the MP2 client plugin directory
Example usage:
XML:
<Screen
xmlns:ie="clr-namespace:ImageSourceExtensions;assembly=ImageSourceExtensions"
>
...
<Image x:Name="FanArtImageBackground" VerticalAlignment="Stretch" Stretch="UniformToFill" Grid.Row="0" Grid.Column="0">
<Image.Source>
<ie:ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5"
Source="{Binding Source={StaticResource FanArtBackgroundModel}, Path=ImageSource, Converter={StaticResource FanArtImageSourceConverter}, ConverterParameter=FanArt;1920;1080;False}"
FallbackSource="FallbackFanart.png" />
</Image.Source>
</Image>
Attachments
Last edited: