|
7 | 7 | xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" |
8 | 8 | xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" |
9 | 9 | xmlns:IconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" |
| 10 | + xmlns:Settings="clr-namespace:NETworkManager.Models.Settings" |
| 11 | + xmlns:Resources="clr-namespace:NETworkManager.Properties" |
10 | 12 | xmlns:Interactivity="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" |
11 | 13 | mc:Ignorable="d" |
12 | 14 | Title="{DynamicResource String_ProductName}" Style="{DynamicResource DefaultWindow}" MinWidth="650" MinHeight="500" Height="650" Width="1000" SaveWindowPosition="True" TitleAlignment="Left" Closing="MetroWindowMain_Closing" StateChanged="MetroWindowMain_StateChanged"> |
|
24 | 26 | </Controls:MetroWindow.IconTemplate> |
25 | 27 | <Controls:MetroWindow.RightWindowCommands> |
26 | 28 | <Controls:WindowCommands> |
27 | | - <Button Command="{Binding OpenGithubProjectCommand}"> |
| 29 | + <Button Command="{Binding OpenWebsiteCommand}" CommandParameter="{x:Static Resources:Resources.NETworkManager_DocumentationUrl}"> |
| 30 | + <StackPanel Orientation="Horizontal"> |
| 31 | + <Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> |
| 32 | + <Rectangle.OpacityMask> |
| 33 | + <VisualBrush Stretch="Uniform" Visual="{IconPacks:PackIconOcticons Kind=Repo}" /> |
| 34 | + </Rectangle.OpacityMask> |
| 35 | + </Rectangle> |
| 36 | + <TextBlock Text="{DynamicResource String_Documentation}" VerticalAlignment="Center" Margin="5,0,0,0" /> |
| 37 | + </StackPanel> |
| 38 | + </Button> |
| 39 | + <Button Command="{Binding OpenWebsiteCommand}" CommandParameter="{x:Static Resources:Resources.NETworkManager_ProjectUrl}"> |
28 | 40 | <StackPanel Orientation="Horizontal"> |
29 | 41 | <Rectangle Width="20" Height="20" Fill="{Binding RelativeSource={RelativeSource AncestorType=Button}, Path=Foreground}"> |
30 | 42 | <Rectangle.OpacityMask> |
31 | 43 | <VisualBrush Stretch="Uniform" Visual="{IconPacks:PackIconModern Kind=SocialGithubOctocat}" /> |
32 | 44 | </Rectangle.OpacityMask> |
33 | 45 | </Rectangle> |
34 | | - <TextBlock Text="Fork me on GitHub!" VerticalAlignment="Center" Margin="5,0,0,0" /> |
| 46 | + <TextBlock Text="{DynamicResource String_ForkMeOnGitHub}" VerticalAlignment="Center" Margin="5,0,0,0" /> |
35 | 47 | </StackPanel> |
36 | 48 | </Button> |
37 | 49 | </Controls:WindowCommands> |
|
594 | 606 | <Border Grid.Row="1" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource GrayBrush8}"> |
595 | 607 | <StatusBar Foreground="{DynamicResource GrayBrush3}"> |
596 | 608 | <StatusBarItem> |
597 | | - <TextBlock Text="{Binding Version}" Style="{StaticResource DefaultTextBlock}" Foreground="{DynamicResource GrayBrush3}" FontWeight="Bold" /> |
| 609 | + <TextBlock Text="{Binding Source={x:Static Settings:AssemblyManager.Current}, Path=Version}" Style="{StaticResource DefaultTextBlock}" Foreground="{DynamicResource GrayBrush3}" FontWeight="Bold" /> |
598 | 610 | </StatusBarItem> |
599 | 611 | </StatusBar> |
600 | 612 | </Border> |
|
0 commit comments