/
AboutControl.xaml
189 lines (179 loc) · 10.8 KB
/
AboutControl.xaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<UserControl x:Class="Rubberduck.UI.About.AboutControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:about="clr-namespace:Rubberduck.UI.About"
mc:Ignorable="d"
d:DesignWidth="499"
d:DataContext="{d:DesignInstance {x:Type about:AboutControlViewModel}, IsDesignTimeCreatable=False}"
KeyDown="OnKeyDownHandler">
<UserControl.Resources>
<BitmapImage x:Key="Ducky" UriSource="../../Resources/AboutBanner.png" />
<BitmapImage x:Key="RD" UriSource="../../Resources/Rubberduck.png" />
</UserControl.Resources>
<Grid Background="#F6F6F6F6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="64" />
<RowDefinition Height="Auto" MinHeight="250" />
<RowDefinition Height="64" />
</Grid.RowDefinitions>
<Border Grid.Column="0" Grid.Row="0" Background="White" Margin="5,5,0,0"
MouseLeftButtonDown="CopyVersionInfo_MouseLeftButtonDown">
<StackPanel>
<TextBlock x:Name="Version"
Margin="5,10,5,0" Text="{Binding Version}" Foreground="Black"
FontWeight="Bold" FontSize="14"
VerticalAlignment="Center" HorizontalAlignment="Center"/>
<Label Name="CopyVersionInfo"
Foreground="Gray"
FontSize="8"
HorizontalAlignment="Center"
Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_CopyVersionLabel}"/>
</StackPanel>
</Border>
<Border Grid.Column="1" Grid.Row="0" Background="White" Margin="0,5,5,0">
<Image Source="{StaticResource RD}" Stretch="Uniform" />
</Border>
<StackPanel Grid.Column="0" Grid.Row="1" Grid.RowSpan="2"
Background="White"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="5,0,0,5" Height="316" Width="175">
<Image Source="{StaticResource Ducky}" Stretch="UniformToFill" Height="250" />
<TextBlock HorizontalAlignment="Center" Margin="0,30,0,0">
<Hyperlink Name="WebpageHyperlink"
NavigateUri="http://rubberduckvba.com/"
FontWeight="Bold"
Command="{Binding UriCommand}"
CommandParameter="{Binding ElementName=WebpageHyperlink, Path=NavigateUri}">rubberduckvba.com</Hyperlink>
</TextBlock>
<TextBlock HorizontalAlignment="Center" Margin="0">
<Hyperlink Name="GoFundMeHyperlink"
NavigateUri="http://gofundme.com/rubberduckvba/"
Command="{Binding UriCommand}"
CommandParameter="{Binding ElementName=GoFundMeHyperlink, Path=NavigateUri}">gofundme.com/rubberduckvba</Hyperlink>
</TextBlock>
</StackPanel>
<StackPanel Grid.Column="1"
Grid.Row="1"
Background="White"
Margin="0,0,5,5"
Grid.RowSpan="2">
<Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_AttributionsLabel}"
FontWeight="SemiBold"
FontSize="12"
Margin="5,0,0,0" />
<TextBlock Margin="15,0,0,10"
Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_AttributionList}"
FontSize="10"/>
<Label Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_SpecialThanksLabel}"
FontWeight="SemiBold"
FontSize="12"
Margin="5,0,0,0" />
<ScrollViewer Margin="15,0,10,0" Height="150">
<StackPanel>
<TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_CommunityHeader}"
FontWeight="SemiBold"
FontSize="10" />
<TextBlock FontSize="10"
xml:space="preserve">JetBrains ReSharper Community Team
Code Review Stack Exchange
Stack Overflow
</TextBlock>
<TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_ContributorsHeader}"
FontWeight="SemiBold"
FontSize="10" />
<TextBlock FontSize="10"
xml:space="preserve">Abraham Hosch
Andrew Jackson
Andrew Zschetzsche
Andrin Meier
Brandon Barney
Brian Zenger
Bruno Costa
Carlos J. Quintero (MZ-Tools)
Clemens Lieb
@Comintern
@daFreeMan
@Duga SE chat bot
Francis Veilleux-Gaboury
Frank Van Heeswijk
Gareth Leachman
@Heslacher
INOPIAE
@IvenBach
Jeroen Vannevel
Max Dörner
Michal Krzych
@mjolka
Philip Wales
Radosław Kapka
Rob Bovey (Smart Indenter)
Ross McLean
Ross Knudsen
Simon Forsberg
Stephen Bullen (Smart Indenter)
</TextBlock>
<TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_GeneralThanks}"
FontSize="10" />
</StackPanel>
</ScrollViewer>
</StackPanel>
<Border Grid.Row="2" Grid.Column="0">
<StackPanel HorizontalAlignment="Center"
Orientation="Horizontal">
<!-- Circle logos created with Ai->XAML Export Plug-In Version 0.2 (PC/64) -->
<!-- By Mike Swanson (http://blog.mikeswanson.com/) -->
<StackPanel Margin="2,5,10,0" HorizontalAlignment="Center">
<TextBlock TextAlignment="Center" HorizontalAlignment="Center">
<Hyperlink Name="GitHubUrl"
NavigateUri="https://github.com/rubberduck-vba/Rubberduck"
Command="{Binding UriCommand}"
CommandParameter="{Binding ElementName=GitHubUrl, Path=NavigateUri}"
TextDecorations="{x:Null}">
<Viewbox Width="25"
Height="25">
<Canvas Width="120"
Height="120"
Background="Transparent">
<Path Fill="Black"
Data=" M 59.996,0.000 C 26.866,0.000 0.000,26.863 0.000,60.003 C 0.000,86.510 17.190,108.999 41.035,116.934 C 44.035,117.484 45.130,115.632 45.130,114.041 C 45.130,112.617 45.078,108.844 45.049,103.837 C 28.359,107.463 24.837,95.794 24.837,95.794 C 22.109,88.862 18.175,87.017 18.175,87.017 C 12.728,83.294 18.588,83.370 18.588,83.370 C 24.609,83.794 27.778,89.553 27.778,89.553 C 33.130,98.722 41.821,96.074 45.240,94.539 C 45.785,90.661 47.335,88.017 49.049,86.517 C 35.725,85.003 21.719,79.856 21.719,56.863 C 21.719,50.313 24.057,44.957 27.895,40.763 C 27.278,39.245 25.219,33.145 28.483,24.884 C 28.483,24.884 33.521,23.271 44.982,31.035 C 49.768,29.704 54.901,29.039 60.003,29.016 C 65.099,29.039 70.232,29.704 75.025,31.035 C 86.479,23.271 91.508,24.884 91.508,24.884 C 94.781,33.145 92.722,39.245 92.105,40.763 C 95.950,44.957 98.272,50.313 98.272,56.863 C 98.272,79.913 84.244,84.985 70.877,86.471 C 73.032,88.323 74.951,91.985 74.951,97.582 C 74.951,105.603 74.877,112.074 74.877,114.041 C 74.877,115.646 75.958,117.513 79.003,116.927 C 102.824,108.977 120.000,86.503 120.000,60.003 C 120.000,26.863 93.134,0.000 59.996,0.000 Z"/>
</Canvas>
</Viewbox>
</Hyperlink>
</TextBlock>
<!--<TextBlock Text="GitHub" FontSize="9" TextAlignment="Center" />-->
</StackPanel>
<StackPanel Margin="25,5,0,0" HorizontalAlignment="Center">
<TextBlock TextAlignment="Center" HorizontalAlignment="Center">
<Hyperlink Name="TwitterUrl"
NavigateUri="http://www.twitter.com/rubberduckvba"
Command="{Binding UriCommand}"
CommandParameter="{Binding ElementName=TwitterUrl, Path=NavigateUri}"
TextDecorations="{x:Null}">
<Viewbox Width="25"
Height="25">
<Canvas Width="120"
Height="120"
Background="Transparent">
<Path Fill="Black"
Data="F1 M 92.670,42.747 C 92.702,43.460 92.718,44.177 92.718,44.897 C 92.718,66.860 76.001,92.185 45.431,92.185 C 36.045,92.185 27.310,89.433 19.954,84.718 C 21.255,84.871 22.577,84.950 23.919,84.950 C 31.706,84.950 38.872,82.293 44.560,77.836 C 37.287,77.701 31.149,72.896 29.034,66.293 C 30.049,66.487 31.090,66.591 32.161,66.591 C 33.677,66.591 35.145,66.388 36.540,66.009 C 28.937,64.482 23.208,57.765 23.208,49.712 C 23.208,49.642 23.208,49.572 23.209,49.503 C 25.450,50.748 28.013,51.496 30.737,51.582 C 26.278,48.601 23.344,43.514 23.344,37.748 C 23.344,34.703 24.163,31.848 25.594,29.393 C 33.791,39.448 46.037,46.065 59.850,46.758 C 59.567,45.541 59.420,44.273 59.420,42.970 C 59.420,33.792 66.861,26.351 76.040,26.351 C 80.820,26.351 85.139,28.369 88.171,31.599 C 91.957,30.854 95.514,29.471 98.725,27.566 C 97.484,31.447 94.849,34.704 91.417,36.761 C 94.779,36.359 97.982,35.466 100.963,34.144 C 98.735,37.477 95.917,40.404 92.670,42.747 Z M 60.000,0.000 C 26.863,0.000 0.000,26.863 0.000,60.000 C 0.000,93.137 26.863,120.000 60.000,120.000 C 93.137,120.000 120.000,93.137 120.000,60.000 C 120.000,26.863 93.137,0.000 60.000,0.000 Z"/>
</Canvas>
</Viewbox>
</Hyperlink>
</TextBlock>
<!--<TextBlock Text="Twitter" FontSize="9" TextAlignment="Center" />-->
</StackPanel>
</StackPanel>
</Border>
<TextBlock Grid.Row="2" Grid.Column="1"
Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_Copyright}"
FontSize="8" Margin="10"
VerticalAlignment="Bottom" HorizontalAlignment="Center" Height="11" Width="237" />
</Grid>
</UserControl>