1
0

Renamed tab headers

This commit is contained in:
Benjamin Höglinger-Stelzer 2018-11-10 16:34:05 +01:00
parent 34ff7eed3c
commit d5dad5f5c2
2 changed files with 38 additions and 8 deletions

View File

@ -21,7 +21,8 @@
</FrameworkElement.CommandBindings> </FrameworkElement.CommandBindings>
<TabControl Margin="15"> <TabControl Margin="15">
<!-- System Details -->
<!-- System Overview -->
<TabItem Header="System Overview"> <TabItem Header="System Overview">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
@ -77,11 +78,12 @@
</Grid> </Grid>
</TabItem> </TabItem>
<!-- Compatibility Summary --> <!-- System Details -->
<TabItem Header="System Details"> <TabItem Header="System Details">
<markdig:MarkdownViewer x:Name="SummaryViewer" /> <markdig:MarkdownViewer x:Name="SummaryViewer" />
</TabItem> </TabItem>
<!-- Test Settings -->
<TabItem Header="Test Settings"> <TabItem Header="Test Settings">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
@ -115,17 +117,17 @@
<TabItem Header="About"> <TabItem Header="About">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="*" /> <RowDefinition Height="*" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Label Grid.Row="0">Made by Benjamin Höglinger-Stelzer</Label> <!-- Buttons -->
<Grid Grid.Row="1"> <Grid Grid.Row="0">
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" /> <ColumnDefinition Width="*" />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
@ -152,7 +154,30 @@
Content="{iconPacks:FontAwesome Kind=NodeJsBrands, Width=32, Height=32}" Content="{iconPacks:FontAwesome Kind=NodeJsBrands, Width=32, Height=32}"
ToolTip="Visit community forums" ToolTip="Visit community forums"
Click="Forums_OnClick" /> Click="Forums_OnClick" />
<Button Grid.Column="3"
Margin="10"
Width="64" Height="64"
Style="{DynamicResource MetroCircleButtonStyle}"
Content="{iconPacks:FontAwesome Kind=GithubBrands, Width=32, Height=32}"
ToolTip="Visit GitHub repositories"
Click="GitHub_OnClick" />
</Grid> </Grid>
<!-- License section -->
<TextBlock TextWrapping="Wrap"
TextAlignment="Justify"
Grid.Row="1">
MIT License<LineBreak/>
Copyright (c) 2018 Benjamin Höglinger-Stelzer<LineBreak/>
<LineBreak/>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:<LineBreak/>
<LineBreak/>
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<LineBreak/>
<LineBreak/>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</TextBlock>
</Grid> </Grid>
</TabItem> </TabItem>
</TabControl> </TabControl>

View File

@ -138,6 +138,11 @@ namespace DerpingDrivers
SummaryViewer.Markdown = MatchingSummaryContent; SummaryViewer.Markdown = MatchingSummaryContent;
} }
private void OpenHyperlink(object sender, ExecutedRoutedEventArgs e)
{
Process.Start(e.Parameter.ToString());
}
private void Web_OnClick(object sender, RoutedEventArgs e) private void Web_OnClick(object sender, RoutedEventArgs e)
{ {
Process.Start("https://vigem.org"); Process.Start("https://vigem.org");
@ -153,9 +158,9 @@ namespace DerpingDrivers
Process.Start("https://forums.vigem.org"); Process.Start("https://forums.vigem.org");
} }
private void OpenHyperlink(object sender, ExecutedRoutedEventArgs e) private void GitHub_OnClick(object sender, RoutedEventArgs e)
{ {
Process.Start(e.Parameter.ToString()); Process.Start("https://github.com/ViGEm");
} }
} }
} }