Miscellaneous

Written By Brian Faeran

Last updated 6 months ago

LAUNCHBOX_ROOT_FOLDER

A variable for paths pointing to the LaunchBox root folder.


LAUNCHBOX_THEME_FOLDER

A variable for paths pointing to your theme’s root folder.


Custom Theme Images

Add static images to your theme using the theme folder variable:

<maui:CachedImage Source="LAUNCHBOX_THEME_FOLDER/Images/background.png"  DownsampleToViewSize="True" FadeAnimationEnabled="False" /> 

Dynamic Custom Images Based on a Binding

Use bindings to dynamically change images based on filters or platforms.

Filters View example:

<maui:CachedImage Binding="{Binding Path=ActiveFilter.FilterValue, StringFormat='{}LAUNCHBOX_THEME_FOLDER/Images/bg/{0}.png'}" DownsampleToViewSize="True" FadeAnimationEnabled="False" /> 

Games View example:

<maui:CachedImage Binding="{Binding Path=ActiveGame.Game.Platform, StringFormat='{}LAUNCHBOX_THEME_FOLDER/Images/bg/{0}.png'}" DownsampleToViewSize="True" FadeAnimationEnabled="False" /> 

TopBarBackgroundColor

Changes the top bar color on the root view:

<views:GamesPage TopBarBackgroundColor="#80212121"> 

UseTransparentTheme

Removes default text list styling so you can create your own:

<views:GamesPage UseTransparentTheme="True"> 

RotationX

Rotates any visual element on the X axis (perspective change). Default: 0.


RotationY

Rotates any visual element on the Y axis (perspective change). Default: 0.