-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAboutWindow.xaml
60 lines (56 loc) · 3.51 KB
/
AboutWindow.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
<Window x:Class="TEAMS2HA.AboutWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="About" Height="486" Width="400"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Light" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml"/>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml"/>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.DataGrid.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid Margin="0,0,0,2">
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Height="434">
<TextBlock Text="TEAMS2HA" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center"/>
<TextBlock x:Name="VersionTextBlock" FontSize="16" HorizontalAlignment="Center"/>
<TextBlock Text="Developed by Jimmy White" FontSize="16" HorizontalAlignment="Center"/>
<TextBlock FontSize="16" HorizontalAlignment="Center" TextWrapping="Wrap">
<Run Text="GitHub Repository: "/>
<Hyperlink NavigateUri="https://github.com/jimmyeao/TEAMS2HA" RequestNavigate="Hyperlink_RequestNavigate">
<Run Text="TEAMS2HA"/>
</Hyperlink>
</TextBlock>
<ListBox x:Name="EntitiesListBox" Width="350" Height="275" MouseDoubleClick="EntitiesListBox_MouseDoubleClick" >
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" Tag="{Binding}">
<TextBlock.ContextMenu>
<ContextMenu>
<MenuItem Header="Copy" Click="CopyMenuItem_Click"
CommandParameter="{Binding PlacementTarget.Tag, RelativeSource={RelativeSource AncestorType={x:Type ContextMenu}}}"/>
</ContextMenu>
</TextBlock.ContextMenu>
</TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Content="Close" HorizontalAlignment="Center" Margin="10" Width="100" Click="CloseButton_Click" Style="{DynamicResource MaterialDesignRaisedButton}"/>
</StackPanel>
</Grid>
</Window>