1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<UserControl x:Class="AdamsToolkit.Views.ChangelogView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Resources>
<!-- separador segmentado (igual ao Desinstalador) -->
<Style x:Key="SegBtn" TargetType="RadioButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Foreground" Value="{DynamicResource BrMuted}"/>
<Setter Property="FontSize" Value="12.5"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="bd" Background="Transparent" CornerRadius="9" Padding="16,8" Margin="3">
<ContentPresenter VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource BrCardHover}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource BrAccentGradient}"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Margin="0,0,0,14">
<TextBlock Text="Novidades" Style="{StaticResource H1}"/>
<TextBlock Text="O que mudou nas últimas versões do Adams Toolkit, explicado de forma simples."
Style="{StaticResource Muted}" Margin="0,4,0,0"/>
</StackPanel>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<ItemsControl x:Name="ReleaseList">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border Style="{StaticResource Card}" Margin="0,0,0,12">
<StackPanel>
<Grid>
<StackPanel Orientation="Horizontal">
<Border Background="{DynamicResource BrAccentGradient}" CornerRadius="7"
Padding="9,3" VerticalAlignment="Center">
<TextBlock Text="{Binding Version}" FontSize="11.5" FontWeight="Bold"
Foreground="#FFFFFF"/>
</Border>
<Border Background="#1A34D399" CornerRadius="7" Padding="8,3"
Margin="8,0,0,0" VerticalAlignment="Center"
Visibility="{Binding CurrentVis}">
<TextBlock Text="VERSÃO ATUAL" FontSize="10" FontWeight="SemiBold"
Foreground="{DynamicResource BrSuccess}"/>
</Border>
<TextBlock Text="{Binding Title}" Style="{StaticResource H2}" FontSize="15"
Margin="12,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<TextBlock Text="{Binding Date}" Style="{StaticResource Muted}"
HorizontalAlignment="Right" VerticalAlignment="Center"/>
</Grid>
<ItemsControl ItemsSource="{Binding Points}" Margin="2,10,0,0">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Margin="0,0,0,6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="•" Foreground="{DynamicResource BrAccent}"
FontWeight="Bold" Margin="0,0,9,0"/>
<TextBlock Grid.Column="1" Text="{Binding}" Style="{StaticResource Body}"
Foreground="{DynamicResource BrMuted}" TextWrapping="Wrap"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Grid>
</UserControl>