PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Windows/AboutWindow.xaml

https://bitbucket.org/RoliSoft/rs-tv-show-tracker
XAML | 350 lines | 345 code | 3 blank | 2 comment | 1 complexity | e48350682e7da8b93bff155186e5dc47 MD5 | raw file
  1<Shell:GlassWindow x:Class="RoliSoft.TVShowTracker.AboutWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Shell="clr-namespace:Microsoft.WindowsAPICodePack.Shell;assembly=Microsoft.WindowsAPICodePack.Shell" Height="290" Width="408" Icon="/RSTVShowTracker;component/Images/information.png" Loaded="GlassWindowLoaded" ResizeMode="NoResize" Title="About RS TV Show Tracker" WindowStartupLocation="CenterScreen">
  2    <Window.Resources>
  3        
  4        <!-- hyperlink style -->
  5        <Style TargetType="{x:Type Hyperlink}">
  6            <Setter Property="Foreground" Value="Yellow" />
  7            <Setter Property="TextDecorations" Value="None" />
  8            <EventSetter Event="MouseEnter" Handler="HyperlinkMouseEnter" />
  9            <EventSetter Event="MouseLeave" Handler="HyperlinkMouseLeave" />
 10            <EventSetter Event="Click" Handler="HyperlinkClick" />
 11        </Style>
 12
 13        <!-- scrollbar style -->
 14        <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
 15            <Setter Property="SnapsToDevicePixels" Value="True" />
 16            <Setter Property="OverridesDefaultStyle" Value="true" />
 17            <Setter Property="Focusable" Value="false" />
 18            <Setter Property="Template">
 19                <Setter.Value>
 20                    <ControlTemplate TargetType="{x:Type RepeatButton}">
 21                        <Border Name="Border" Margin="1" CornerRadius="2" Background="#30FFFFFF" BorderBrush="Transparent" BorderThickness="1">
 22                            <Path HorizontalAlignment="Center" VerticalAlignment="Center" Fill="Black" Data="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}}" />
 23                        </Border>
 24                        <ControlTemplate.Triggers>
 25                            <Trigger Property="IsPressed" Value="true">
 26                                <Setter TargetName="Border" Property="Background" Value="#50ffffff" />
 27                            </Trigger>
 28                            <Trigger Property="IsEnabled" Value="false">
 29                                <Setter Property="Foreground" Value="Transparent" />
 30                            </Trigger>
 31                        </ControlTemplate.Triggers>
 32                    </ControlTemplate>
 33                </Setter.Value>
 34            </Setter>
 35        </Style>
 36        <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
 37            <Setter Property="SnapsToDevicePixels" Value="True" />
 38            <Setter Property="OverridesDefaultStyle" Value="true" />
 39            <Setter Property="IsTabStop" Value="false" />
 40            <Setter Property="Focusable" Value="false" />
 41            <Setter Property="Template">
 42                <Setter.Value>
 43                    <ControlTemplate TargetType="{x:Type RepeatButton}">
 44                        <Border Background="Transparent" />
 45                    </ControlTemplate>
 46                </Setter.Value>
 47            </Setter>
 48        </Style>
 49        <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
 50            <Setter Property="SnapsToDevicePixels" Value="True" />
 51            <Setter Property="OverridesDefaultStyle" Value="true" />
 52            <Setter Property="IsTabStop" Value="false" />
 53            <Setter Property="Focusable" Value="false" />
 54            <Setter Property="Template">
 55                <Setter.Value>
 56                    <ControlTemplate TargetType="{x:Type Thumb}">
 57                        <Border CornerRadius="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" />
 58                    </ControlTemplate>
 59                </Setter.Value>
 60            </Setter>
 61        </Style>
 62        <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
 63            <Grid>
 64                <Grid.RowDefinitions>
 65                    <RowDefinition MaxHeight="18" />
 66                    <RowDefinition Height="0.00001*" />
 67                    <RowDefinition MaxHeight="18" />
 68                </Grid.RowDefinitions>
 69                <Border Grid.RowSpan="3" CornerRadius="2" Background="Transparent" />
 70                <RepeatButton Grid.Row="0" Style="{StaticResource ScrollBarLineButton}" Height="18" Command="ScrollBar.LineUpCommand" Content="M 0 4 L 8 4 L 4 0 Z" />
 71                <Track Name="PART_Track" Grid.Row="1" IsDirectionReversed="true">
 72                    <Track.DecreaseRepeatButton>
 73                        <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageUpCommand" />
 74                    </Track.DecreaseRepeatButton>
 75                    <Track.Thumb>
 76                        <Thumb Style="{StaticResource ScrollBarThumb}" Margin="1,0,1,0" Background="#30FFFFFF" BorderBrush="Transparent" />
 77                    </Track.Thumb>
 78                    <Track.IncreaseRepeatButton>
 79                        <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand" />
 80                    </Track.IncreaseRepeatButton>
 81                </Track>
 82                <RepeatButton Grid.Row="3" Style="{StaticResource ScrollBarLineButton}" Height="18" Command="ScrollBar.LineDownCommand" Content="M 0 0 L 4 4 L 8 0 Z" />
 83            </Grid>
 84        </ControlTemplate>
 85        <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
 86            <Grid>
 87                <Grid.ColumnDefinitions>
 88                    <ColumnDefinition MaxWidth="18" />
 89                    <ColumnDefinition Width="0.00001*" />
 90                    <ColumnDefinition MaxWidth="18" />
 91                </Grid.ColumnDefinitions>
 92                <Border Grid.ColumnSpan="3" CornerRadius="2" Background="Transparent" />
 93                <RepeatButton Grid.Column="0" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineLeftCommand" Content="M 4 0 L 4 8 L 0 4 Z" />
 94                <Track Name="PART_Track" Grid.Column="1" IsDirectionReversed="False">
 95                    <Track.DecreaseRepeatButton>
 96                        <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageLeftCommand" />
 97                    </Track.DecreaseRepeatButton>
 98                    <Track.Thumb>
 99                        <Thumb Style="{StaticResource ScrollBarThumb}" Margin="0,1,0,1" Background="#30FFFFFF" BorderBrush="Transparent" />
100                    </Track.Thumb>
101                    <Track.IncreaseRepeatButton>
102                        <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageRightCommand" />
103                    </Track.IncreaseRepeatButton>
104                </Track>
105                <RepeatButton Grid.Column="3" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineRightCommand" Content="M 0 0 L 4 4 L 0 8 Z" />
106            </Grid>
107        </ControlTemplate>
108        <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
109            <Setter Property="SnapsToDevicePixels" Value="True" />
110            <Setter Property="OverridesDefaultStyle" Value="true" />
111            <Style.Triggers>
112                <Trigger Property="Orientation" Value="Horizontal">
113                    <Setter Property="Width" Value="Auto" />
114                    <Setter Property="Height" Value="18" />
115                    <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
116                </Trigger>
117                <Trigger Property="Orientation" Value="Vertical">
118                    <Setter Property="Width" Value="18" />
119                    <Setter Property="Height" Value="Auto" />
120                    <Setter Property="Template" Value="{StaticResource VerticalScrollBar}" />
121                </Trigger>
122            </Style.Triggers>
123        </Style>
124    </Window.Resources>
125    
126    <Grid Margin="10">
127        <Image Height="64" Margin="0,-13,0,0" HorizontalAlignment="Left" Name="logo" Source="/RSTVShowTracker;component/tv.ico" VerticalAlignment="Top">
128            <Image.Effect>
129                <DropShadowEffect Opacity="0.7" ShadowDepth="0" />
130            </Image.Effect>
131        </Image>
132        <Label Height="50" Margin="70,-19,0,0" Content="RS TV Show Tracker" Cursor="Hand" FontSize="32" Foreground="White" HorizontalAlignment="Left" MouseLeftButtonUp="LabelMouseLeftButtonUp" Name="name" VerticalAlignment="Top">
133            <Label.Effect>
134                <DropShadowEffect BlurRadius="5" Color="Black" ShadowDepth="2" />
135            </Label.Effect>
136        </Label>
137        <Label Margin="70,18,0,0" Cursor="Hand" FontSize="18" Foreground="White" HorizontalAlignment="Left" MouseLeftButtonUp="LabelMouseLeftButtonUp" Name="site" VerticalAlignment="Top">
138            <Label.Effect>
139                <DropShadowEffect BlurRadius="5" Color="Black" ShadowDepth="2" />
140            </Label.Effect>
141        </Label>
142        <FlowDocumentScrollViewer Margin="0,55,0,0">
143            <FlowDocumentScrollViewer.Effect>
144                <DropShadowEffect ShadowDepth="0" />
145            </FlowDocumentScrollViewer.Effect>
146            <FlowDocument PagePadding="5,5,5,15">
147                <Section FontFamily="Verdana" FontSize="12" Foreground="White" TextAlignment="Center" Margin="0,200,0,0" Padding="0">
148                    <Paragraph Margin="0">
149                        <Hyperlink Name="github1" NavigateUri="http://github.com/RoliSoft/RS-TV-Show-Tracker/commits"><Run Name="version">v2</Run></Hyperlink> / rev <Hyperlink Name="github2" NavigateUri="http://github.com/RoliSoft/RS-TV-Show-Tracker"><Run Name="revision">00000000</Run></Hyperlink>
150                        <LineBreak />
151                        Compiled on <Run Name="compile">21st century</Run>
152                    </Paragraph>
153                    <Paragraph Margin="0,10,0,0">
154                        This software is licensed under the
155                        <LineBreak />
156                        <Hyperlink NavigateUri="http://www.microsoft.com/en-us/openness/resources/licenses.aspx#MRL">Microsoft Reciprocal License</Hyperlink>
157                    </Paragraph>
158                    <Paragraph Margin="0,10,0,0" FontWeight="Bold">
159                        Libraries
160                    </Paragraph>
161                    <List Margin="0,10,0,0" Padding="0" MarkerStyle="None">
162                        <ListItem>
163                            <Paragraph>
164                                <Hyperlink NavigateUri="http://htmlagilitypack.codeplex.com/">Html Agility Pack</Hyperlink>
165                            </Paragraph>
166                        </ListItem>
167                        <ListItem>
168                            <Paragraph>
169                                <Hyperlink NavigateUri="http://json.codeplex.com/">Json.NET</Hyperlink>
170                            </Paragraph>
171                        </ListItem>
172                        <ListItem>
173                            <Paragraph>
174                                <Hyperlink NavigateUri="http://www.xml-rpc.net/">XML-RPC.NET</Hyperlink>
175                            </Paragraph>
176                        </ListItem>
177                        <ListItem>
178                            <Paragraph>
179                                <Hyperlink NavigateUri="http://github.com/danielcrenna/hammock">Hammock</Hyperlink>
180                            </Paragraph>
181                        </ListItem>
182                        <ListItem>
183                            <Paragraph>
184                                <Hyperlink NavigateUri="http://biko.codeplex.com/">Starksoft Biko</Hyperlink>
185                            </Paragraph>
186                        </ListItem>
187                        <ListItem>
188                            <Paragraph>
189                                <Hyperlink NavigateUri="http://sharpcompress.codeplex.com/">SharpCompress</Hyperlink>
190                            </Paragraph>
191                        </ListItem>
192                        <ListItem>
193                            <Paragraph>
194                                <Hyperlink NavigateUri="http://www.nunit.org/">NUnit</Hyperlink>
195                            </Paragraph>
196                        </ListItem>
197                        <ListItem>
198                            <Paragraph>
199                                <Hyperlink NavigateUri="http://ironpython.net/">IronPython</Hyperlink>
200                            </Paragraph>
201                        </ListItem>
202                        <ListItem>
203                            <Paragraph>
204                                <Hyperlink NavigateUri="http://dlr.codeplex.com/">Microsoft� Dynamic Language Runtime�</Hyperlink>
205                            </Paragraph>
206                        </ListItem>
207                        <ListItem>
208                            <Paragraph>
209                                <Hyperlink NavigateUri="http://code.msdn.microsoft.com/WindowsAPICodePack">Windows� API Code Pack for Microsoft� .NET Framework</Hyperlink>
210                            </Paragraph>
211                        </ListItem>
212                        <ListItem>
213                            <Paragraph>
214                                <Hyperlink NavigateUri="http://wpftoolkit.codeplex.com/">Extended WPF Toolkit� Community Edition</Hyperlink>
215                            </Paragraph>
216                        </ListItem>
217                        <ListItem>
218                            <Paragraph>
219                                <Hyperlink NavigateUri="http://transitionals.codeplex.com/">Transitionals</Hyperlink>
220                            </Paragraph>
221                        </ListItem>
222                        <ListItem>
223                            <Paragraph>
224                                <Hyperlink NavigateUri="http://greyableimage.codeplex.com/">GreyableImage</Hyperlink>
225                            </Paragraph>
226                        </ListItem>
227                        <ListItem>
228                            <Paragraph>
229                                <Hyperlink NavigateUri="http://nsis.sourceforge.net/Main_Page">Nullsoft Scriptable Install System</Hyperlink>
230                            </Paragraph>
231                        </ListItem>
232                    </List>
233                    <Paragraph Margin="0,10,0,0" FontWeight="Bold">
234                        Icons
235                    </Paragraph>
236                    <List Margin="0,10,0,0" Padding="0" MarkerStyle="None">
237                        <ListItem>
238                            <Paragraph>
239                                <Hyperlink NavigateUri="http://p.yusukekamiyamane.com/">Fugue</Hyperlink>
240                            </Paragraph>
241                        </ListItem>
242                        <ListItem>
243                            <Paragraph>
244                                <Hyperlink NavigateUri="http://www.icondrawer.com/">Icon Drawer</Hyperlink>
245                            </Paragraph>
246                        </ListItem>
247                        <ListItem>
248                            <Paragraph>
249                                <Hyperlink NavigateUri="http://www.oxygen-icons.org/">Oxygen</Hyperlink>
250                            </Paragraph>
251                        </ListItem>
252                        <ListItem>
253                            <Paragraph>
254                                <Hyperlink NavigateUri="http://www.fatcow.com/free-icons">FatCow</Hyperlink>
255                            </Paragraph>
256                        </ListItem>
257                    </List>
258                    <Paragraph Margin="0,10,0,0" FontWeight="Bold">
259                        Services
260                    </Paragraph>
261                    <List Margin="0,10,0,0" Padding="0" MarkerStyle="None">
262                        <ListItem>
263                            <Paragraph>
264                                <Hyperlink NavigateUri="http://www.tvrage.com/">TVRage</Hyperlink>
265                            </Paragraph>
266                        </ListItem>
267                        <ListItem>
268                            <Paragraph>
269                                <Hyperlink NavigateUri="http://www.thetvdb.com/">The TVDB</Hyperlink>
270                            </Paragraph>
271                        </ListItem>
272                        <ListItem>
273                            <Paragraph>
274                                <Hyperlink NavigateUri="http://www.tv.com/">TV.com</Hyperlink>
275                            </Paragraph>
276                        </ListItem>
277                        <ListItem>
278                            <Paragraph>
279                                <Hyperlink NavigateUri="http://www.episodeworld.com/">EPisodeWorld</Hyperlink>
280                            </Paragraph>
281                        </ListItem>
282                        <ListItem>
283                            <Paragraph>
284                                <Hyperlink NavigateUri="http://www.imdb.com/">IMDb</Hyperlink>
285                            </Paragraph>
286                        </ListItem>
287                        <ListItem>
288                            <Paragraph>
289                                <Hyperlink NavigateUri="http://www.epguides.com/">EPGuides</Hyperlink>
290                            </Paragraph>
291                        </ListItem>
292                        <ListItem>
293                            <Paragraph>
294                                <Hyperlink NavigateUri="http://www.anidb.net/">AniDB</Hyperlink>
295                            </Paragraph>
296                        </ListItem>
297                        <ListItem>
298                            <Paragraph>
299                                <Hyperlink NavigateUri="http://www.animenewsnetwork.com/">Anime News Network</Hyperlink>
300                            </Paragraph>
301                        </ListItem>
302                        <ListItem>
303                            <Paragraph>
304                                <Hyperlink NavigateUri="http://www.google.com/">Google</Hyperlink>
305                            </Paragraph>
306                        </ListItem>
307                        <ListItem>
308                            <Paragraph>
309                                <Hyperlink NavigateUri="http://www.bing.com/">Bing</Hyperlink>
310                            </Paragraph>
311                        </ListItem>
312                        <ListItem>
313                            <Paragraph>
314                                <Hyperlink NavigateUri="http://www.duckduckgo.com/">DuckDuckGo</Hyperlink>
315                            </Paragraph>
316                        </ListItem>
317                        <ListItem>
318                            <Paragraph>
319                                <Hyperlink NavigateUri="http://getfavicon.appspot.com/">getFavicon</Hyperlink>
320                            </Paragraph>
321                        </ListItem>
322                        <ListItem>
323                            <Paragraph>
324                                <Hyperlink NavigateUri="http://www.tastekid.com/">TasteKid</Hyperlink>
325                            </Paragraph>
326                        </ListItem>
327                        <ListItem>
328                            <Paragraph>
329                                <Hyperlink NavigateUri="http://lab.rolisoft.net/tv/">RS TV Show Recommendation</Hyperlink>
330                            </Paragraph>
331                        </ListItem>
332                        <ListItem>
333                            <Paragraph>
334                                <Hyperlink NavigateUri="http://twitter.com/">Twitter</Hyperlink>
335                            </Paragraph>
336                        </ListItem>
337                        <ListItem>
338                            <Paragraph>
339                                <Hyperlink NavigateUri="http://identi.ca/">Identi.ca</Hyperlink>
340                            </Paragraph>
341                        </ListItem>
342                    </List>
343                    <Paragraph Margin="0,10,0,0">
344                        Special thanks to all the users who have supported the development of the software!
345                    </Paragraph>
346                </Section>
347            </FlowDocument>
348        </FlowDocumentScrollViewer>
349    </Grid>
350</Shell:GlassWindow>