-
-
Notifications
You must be signed in to change notification settings - Fork 31
News Viewer
Brandon edited this page Nov 9, 2021
·
7 revisions
Full integration tutorial for theme developers is available in the Playnite documentation: https://playnite.link/docs/devel/tutorials/themes/extensionIntegration.html
Example:
[...]
<Grid Visibility="{PluginStatus Plugin=NewsViewer_15e03ffe-90f6-4e8e-bd4d-94514777481d, Status=Installed}">
[...]
It can also be used to return a bool
value if used in another property.
<ContentControl x:Name="NewsViewer_NewsViewerControl" />
The source name of the plugin is NewsViewer
Setting | Type | Default | Description |
---|---|---|---|
ReviewsAvailable | bool | false | Indicates if the selected game has news available |
Binding example:
[...]
<StackPanel>
<StackPanel.Style>
<Style TargetType="StackPanel">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{PluginSettings Plugin=NewsViewer, Path=ReviewsAvailable, FallbackValue=False}" Value="True">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
[...]