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
<UserControl x:Class="AdamsToolkit.Views.PcSpecsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Margin="0,0,0,14">
<StackPanel>
<TextBlock Text="O meu PC" Style="{StaticResource H1}"/>
<TextBlock Text="Todas as especificações do teu computador num só sítio."
Style="{StaticResource Muted}" Margin="0,4,0,0"/>
</StackPanel>
<Button x:Name="CopyBtn" Style="{StaticResource GhostButton}" Content="📋 Copiar specs"
HorizontalAlignment="Right" VerticalAlignment="Top" Click="Copy_Click"/>
</Grid>
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<StackPanel>
<TextBlock x:Name="LoadingText" Style="{StaticResource Muted}"
Text="A ler o hardware…" Margin="2,0,0,10"/>
<ItemsControl x:Name="SectionsList">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border Style="{StaticResource Card}" Margin="0,0,0,12">
<StackPanel>
<TextBlock Text="{Binding Title}" Style="{StaticResource Muted}"
FontSize="10.5" FontWeight="SemiBold"/>
<ItemsControl ItemsSource="{Binding Items}" Margin="0,8,0,0">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Label}" Style="{StaticResource Muted}"
VerticalAlignment="Top"/>
<TextBlock Grid.Column="1" Text="{Binding Value}"
Style="{StaticResource Body}" TextWrapping="Wrap"/>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
</Grid>
</UserControl>