-
-
Notifications
You must be signed in to change notification settings - Fork 3
Use localization string in a custom theme
Lacro59 edited this page Jan 29, 2021
·
3 revisions
For use and see in theme editor a localisation string from plugin:
After, the locazation string is called with "DynamicResource". It's possible to acssociate with a converter for auto-hide when the plugin is not loaded:
<TextBlock Text="{DynamicResource LOCSuccessStoryAchievements}" Margin="0,15,0,5"
Style="{DynamicResource BaseTextBlockStyle}"
Visibility="{Binding RelativeSource={RelativeSource Self}, Path=Text,
Converter={converters:StringNullOrEmptyToVisibilityConverter}}"/>
Warnings The localization file is keep with the Playnite toolbox. But there is no impact because it is not used.