-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutWindow.xaml
54 lines (50 loc) · 2.75 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
<Window x:Class="PC2MQTT.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:local="clr-namespace:PC2MQTT"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="About" Height="531" Width="400"
WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
TextElement.Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
Background="{DynamicResource MaterialDesign.Brush.Background}"
TextElement.FontWeight="Regular"
TextElement.FontSize="12"
FontFamily="{materialDesign:MaterialDesignFont}"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto">
<Grid Margin="0,0,0,1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="77*"/>
</Grid.ColumnDefinitions>
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Left" Height="494" Grid.Column="1" Margin="10,0,0,0">
<TextBlock Text="PC2MQTT" 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/PC2MQTT" RequestNavigate="Hyperlink_RequestNavigate">
<Run Text="PC2MQTT"/>
</Hyperlink>
</TextBlock>
<ListBox x:Name="EntitiesListBox" Width="350" Height="331" 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" Width="100" Click="CloseButton_Click" Style="{DynamicResource MaterialDesignRaisedButton}"/>
</StackPanel>
</Grid>
</Window>