- March 21, 2007
- 2,305
- 1,884
- Home Country
- United Kingdom
- Moderator
- #71
Power is back
@ge2301 To get transitions for the home menu you need to edit the 'BackgroundBrush' resource in styles\OtherControls.xaml (very near the top), this defines the image control to use for the background. You just use the ImageSourceWrapper as usual on the image control, i.e.
I still need to look at how latest media is handled and whether it is extensible enough to handle games...
@ge2301 To get transitions for the home menu you need to edit the 'BackgroundBrush' resource in styles\OtherControls.xaml (very near the top), this defines the image control to use for the background. You just use the ImageSourceWrapper as usual on the image control, i.e.
XML:
<ResourceWrapper x:Key="BackgroundBrush">
<VisualBrush x:Name="BackdropImageBackgroundBrush">
<VisualBrush.Visual>
<Image x:Name="BackdropImageBackground" Stretch="Fill">
<Image.Source>
<ImageSourceWrapper Delay="0.5" DelayInOut="true" Transition="transitions\dissolve" TransitionDuration="0.5"
Source="{Binding Source={StaticResource BackgroundManagerModel}, Path=BackgroundImage}"
FallbackSource="background.png" />
</Image.Source>
</Image>
</VisualBrush.Visual>
</VisualBrush>
</ResourceWrapper>
I still need to look at how latest media is handled and whether it is extensible enough to handle games...