Skip to content

Addition in a custom theme

Lacro59 edited this page Sep 1, 2020 · 18 revisions

Differents resources disponible with DynamicResource

Name Type Default
Ga_HasData bool false
Ga_LastDateSession string string.Empty
Ga_LastPlaytimeSession string string.Empty

Code integration example with options "Custom theme integration"

Show a element if there is data

<Label Content="visible when has data" Tag="{DynamicResource Ga_HasData}" 
       Visibility="{Binding RelativeSource={RelativeSource Self}, Path=Tag, Converter={StaticResource BooleanToVisibilityConverter}}" />

Show graphic with time session

<StackPanel Name="PART_GameActivity_Graphic" with="optional" height="optional"></StackPanel>

Show graphic with last log session

<StackPanel Name="PART_GameActivity_GraphicLog" with="optional" height="optional"></StackPanel>

Create a custom button what open plugin view

<Button Name="PART_GaCustomButton">your custom template here</Button>