|
| 1 | +<mah:MetroWindow x:Class="CodeSnip.Views.AboutView.AboutWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" |
| 7 | + xmlns:local="clr-namespace:CodeSnip.Views.AboutView" |
| 8 | + d:DataContext="{d:DesignInstance Type=local:AboutWindowModel}" |
| 9 | + mc:Ignorable="d" |
| 10 | + Title="About" Height="400" Width="600" |
| 11 | + ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" > |
| 12 | + <mah:MetroWindow.Resources> |
| 13 | + |
| 14 | + </mah:MetroWindow.Resources> |
| 15 | + <Grid> |
| 16 | + <mah:MetroTabControl TabStripPlacement="Left" Style="{StaticResource MahApps.Styles.TabControl.Animated}" mah:HeaderedControlHelper.HeaderFontSize="18"> |
| 17 | + |
| 18 | + <mah:MetroTabItem Header="About"> |
| 19 | + <StackPanel Margin="20" HorizontalAlignment="Center"> |
| 20 | + |
| 21 | + <TextBlock Text="{Binding Title}" |
| 22 | + FontWeight="Bold" |
| 23 | + FontSize="22" |
| 24 | + Foreground="{DynamicResource MahApps.Brushes.Accent}" |
| 25 | + HorizontalAlignment="Center" /> |
| 26 | + |
| 27 | + <TextBlock Text="Version:" FontWeight="SemiBold" Margin="0,20,0,0" /> |
| 28 | + <TextBlock Text="{Binding Version}" FontSize="14" /> |
| 29 | + |
| 30 | + <TextBlock Text="Description:" FontWeight="SemiBold" Margin="0,15,0,0" /> |
| 31 | + <TextBlock Text="{Binding Description}" |
| 32 | + TextWrapping="Wrap" |
| 33 | + FontSize="13" |
| 34 | + Foreground="{DynamicResource MahApps.Brushes.Gray}" /> |
| 35 | + |
| 36 | + <TextBlock Text="Company:" FontWeight="SemiBold" Margin="0,15,0,0" /> |
| 37 | + <TextBlock Text="{Binding Company}" FontSize="14" /> |
| 38 | + <!--<TextBlock Text="Copyright:" FontWeight="SemiBold" Margin="0,15,0,0" />--> |
| 39 | + <TextBlock Text="{Binding Copyright}" FontSize="14" Margin="0,15,0,0" /> |
| 40 | + |
| 41 | + <TextBlock Margin="15,30,0,0" HorizontalAlignment="Center" FontSize="14" ToolTip="{Binding Url}"> |
| 42 | + <Run Text="Repository: " /> |
| 43 | + <Hyperlink NavigateUri="https://github.com/mx7b7/codesnip-wpf/" |
| 44 | + RequestNavigate="Hyperlink_RequestNavigate"> |
| 45 | + <Run Text="GitHub" /> |
| 46 | + </Hyperlink> |
| 47 | + </TextBlock> |
| 48 | + </StackPanel> |
| 49 | + </mah:MetroTabItem> |
| 50 | + |
| 51 | + <mah:MetroTabItem Header="Dependencies & Tools"> |
| 52 | + <ScrollViewer Margin="10" VerticalScrollBarVisibility="Auto"> |
| 53 | + <StackPanel> |
| 54 | + |
| 55 | + <mah:MetroHeader Content="Libraries" |
| 56 | + FontWeight="Bold" |
| 57 | + FontSize="16" |
| 58 | + Foreground="{DynamicResource MahApps.Brushes.Accent}" |
| 59 | + Margin="0,0,0,10"/> |
| 60 | + |
| 61 | + <ItemsControl ItemsSource="{Binding Libraries}"> |
| 62 | + <ItemsControl.ItemTemplate> |
| 63 | + <DataTemplate> |
| 64 | + <StackPanel Orientation="Horizontal" Margin="0,5" VerticalAlignment="Center"> |
| 65 | + <TextBlock Text="• " FontSize="16" Margin="0,0,5,0" VerticalAlignment="Center" /> |
| 66 | + <TextBlock ToolTip="{Binding Url}"> |
| 67 | + <Hyperlink NavigateUri="{Binding Url}" RequestNavigate="Hyperlink_RequestNavigate"> |
| 68 | + <Run Text="{Binding Name}" /> |
| 69 | + </Hyperlink> |
| 70 | + </TextBlock> |
| 71 | + </StackPanel> |
| 72 | + </DataTemplate> |
| 73 | + </ItemsControl.ItemTemplate> |
| 74 | + </ItemsControl> |
| 75 | + |
| 76 | + <mah:MetroHeader Content="External Services" |
| 77 | + FontWeight="Bold" |
| 78 | + FontSize="16" |
| 79 | + Foreground="{DynamicResource MahApps.Brushes.Accent}" |
| 80 | + Margin="0,20,0,10"/> |
| 81 | + |
| 82 | + <ItemsControl ItemsSource="{Binding Services}"> |
| 83 | + <ItemsControl.ItemTemplate> |
| 84 | + <DataTemplate> |
| 85 | + <StackPanel Orientation="Horizontal" Margin="0,5" VerticalAlignment="Center"> |
| 86 | + <TextBlock Text="• " FontSize="16" Margin="0,0,5,0" VerticalAlignment="Center" /> |
| 87 | + <TextBlock ToolTip="{Binding Url}"> |
| 88 | + <Hyperlink NavigateUri="{Binding Url}" RequestNavigate="Hyperlink_RequestNavigate"> |
| 89 | + <Run Text="{Binding Name}" /> |
| 90 | + </Hyperlink> |
| 91 | + </TextBlock> |
| 92 | + </StackPanel> |
| 93 | + </DataTemplate> |
| 94 | + </ItemsControl.ItemTemplate> |
| 95 | + </ItemsControl> |
| 96 | + |
| 97 | + <mah:MetroHeader Content="External Tools" |
| 98 | + FontWeight="Bold" |
| 99 | + FontSize="16" |
| 100 | + Foreground="{DynamicResource MahApps.Brushes.Accent}" |
| 101 | + Margin="0,20,0,10"/> |
| 102 | + <ItemsControl ItemsSource="{Binding Tools}"> |
| 103 | + <ItemsControl.ItemTemplate> |
| 104 | + <DataTemplate> |
| 105 | + <StackPanel Orientation="Horizontal" Margin="0,5" VerticalAlignment="Center"> |
| 106 | + <TextBlock Text="• " FontSize="16" Margin="0,0,5,0" VerticalAlignment="Center" /> |
| 107 | + <TextBlock ToolTip="{Binding Url}"> |
| 108 | + <Hyperlink NavigateUri="{Binding Url}" RequestNavigate="Hyperlink_RequestNavigate"> |
| 109 | + <Run Text="{Binding Name}" /> |
| 110 | + </Hyperlink> |
| 111 | + </TextBlock> |
| 112 | + </StackPanel> |
| 113 | + </DataTemplate> |
| 114 | + </ItemsControl.ItemTemplate> |
| 115 | + </ItemsControl> |
| 116 | + </StackPanel> |
| 117 | + </ScrollViewer> |
| 118 | + </mah:MetroTabItem> |
| 119 | + |
| 120 | + <mah:MetroTabItem Header="Notes"> |
| 121 | + <!-- Usage tips --> |
| 122 | + </mah:MetroTabItem> |
| 123 | + </mah:MetroTabControl> |
| 124 | + </Grid> |
| 125 | +</mah:MetroWindow> |
0 commit comments