-
-
Notifications
You must be signed in to change notification settings - Fork 3
Addition in a custom theme
Lacro59 edited this page Jul 11, 2021
·
8 revisions
In full screen application only the differents resources are available.
Name | Type | Default | Description |
---|---|---|---|
Ssv_HasData | bool | false | if have data |
Ssv_Count | double | 0 | |
Ssv_ListScreenshots | List Screenshots | List.Empty | details |
Ssv_EnableIntegrationInCustomTheme | bool | false | value from settings |
<StackPanel Tag="{DynamicResource Ssv_HasData}">
<StackPanel.Style>
<Style>
<Setter Property="Control.Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="False">
<Setter Property="Control.Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<here your custom code or a element predefined with extension>
</StackPanel>
<StackPanel Tag="{DynamicResource Ssv_HasData}">
<StackPanel.Style>
<Style>
<Setter Property="Control.Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="{x:Null}">
<Setter Property="Control.Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<here your custom code or a element predefined with extension>
</StackPanel>
<StackPanel Tag="{DynamicResource Ssv_HasData}">
<StackPanel.Style>
<Style>
<Setter Property="Control.Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="{x:Null}">
<Setter Property="Control.Visibility" Value="Collapsed" />
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="False">
<Setter Property="Control.Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</StackPanel.Style>
<here your custom code or a element predefined with extension>
</StackPanel>
<StackPanel Name="PART_SsvButtonWithJustIcon" With="optional" Height="optional" />
<StackPanel Name="PART_SsvButtonWithTitle" With="optional" Height="optional" />
<StackPanel Name="PART_SsvButtonWithTitleAndDetails" With="optional" Height="optional" />
<Button Name="PART_SsvCustomButton">your custom template here</Button>
<StackPanel Name="PART_SsvSinglePicture" With="optional" Height="optional" />
<StackPanel Name="PART_SsvListScreenshots" With="optional" Height="optional" />