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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
<controls:WindowEx xmlns="https://github.com/avaloniaui"
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:controls="clr-namespace:UVtools.WPF.Controls"
xmlns:core="clr-namespace:UVtools.Core;assembly=UVtools.Core"
mc:Ignorable="d" d:DesignWidth="960" d:DesignHeight="700"
x:Class="UVtools.WPF.Windows.AboutWindow"
Width="960" Height="710"
MinWidth="600" MinHeight="550"
WindowStartupLocation="CenterOwner"
SizeToContent="Manual"
CanResize="True"
Title="About UVtools"
Icon="/Assets/Icons/UVtools.ico">
<DockPanel>
<Border DockPanel.Dock="Bottom" Classes="FooterActions">
<Grid ColumnDefinitions="Auto,*">
<controls:ButtonWithIcon
Grid.Column="0"
Command="{Binding CopyEssentialInformation}"
Padding="10"
VerticalContentAlignment="Center"
HorizontalAlignment="Right"
Icon="far fa-clipboard"
Text="Copy information ⮝">
<Button.ContextMenu>
<ContextMenu PlacementAnchor="Top" PlacementMode="Top">
<MenuItem Header="Copy the essential information" Command="{Binding CopyEssentialInformation}"/>
<MenuItem Header="Copy OpenCV build information" Command="{Binding CopyOpenCVInformationToClipboard}"/>
<MenuItem Header="Copy loaded assemblies" Command="{Binding CopyLoadedAssembliesToClipboard}"/>
<MenuItem Header="All information" Command="{Binding CopyInformationToClipboard}"/>
</ContextMenu>
</Button.ContextMenu>
</controls:ButtonWithIcon>
<controls:ButtonWithIcon Grid.Column="1"
Command="{Binding Close}"
IsCancel="True"
Padding="10"
VerticalContentAlignment="Center"
HorizontalAlignment="Right"
Icon="fas fa-sign-out-alt"
Text="Close"/>
</Grid>
</Border>
<ScrollViewer DockPanel.Dock="Left"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Auto">
<StackPanel Spacing="5" Margin="20" MaxWidth="380">
<Image Margin="0,0,0,10"
HorizontalAlignment="Center"
Source="/Assets/Icons/UVtools_alt.ico"
Width="256"/>
<TextBox
Text="{Binding OSDescription}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Operative System:"
UseFloatingWatermark="True"/>
<TextBox
Text="{Binding ProcessorName}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Processor:"
UseFloatingWatermark="True"/>
<Grid ColumnDefinitions="*,*">
<TextBox
Grid.Column="0"
Text="{Binding ProcessorCount}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Processor cores:"
UseFloatingWatermark="True"/>
<TextBox
Grid.Column="1"
Text="{Binding MemoryRAMDescription}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Memory RAM:"
UseFloatingWatermark="True"/>
</Grid>
<Grid ColumnDefinitions="*,*">
<TextBox
Grid.Column="0"
Text="{Binding RuntimeDescription}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Runtime:"
UseFloatingWatermark="True"/>
<TextBox
Grid.Column="1"
Text="{Binding OpenCVVersion}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="OpenCV:"
UseFloatingWatermark="True"/>
</Grid>
<Grid ColumnDefinitions="*,*">
<TextBox
Grid.Column="0"
Text="{Binding FrameworkDescription}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Framework:"
UseFloatingWatermark="True"/>
<TextBox
Grid.Column="1"
Text="{Binding AvaloniaUIDescription}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="AvaloniaUI:"
UseFloatingWatermark="True"/>
</Grid>
<TextBox
Text="{Binding ScreensDescription}"
IsReadOnly="True"
BorderBrush="Transparent"
CaretBrush="Transparent"
Watermark="Screens, resolution, working area, usable area:"
UseFloatingWatermark="True"/>
</StackPanel>
</ScrollViewer>
<Border>
<Grid
RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto,5,*"
Margin="20">
<TextBlock Grid.Row="0" Text="{Binding Source={x:Static core:About.Software}}" FontWeight="Bold"/>
<TextBlock Grid.Row="2" Text="{Binding Source={x:Static core:About.VersionArch}, StringFormat=Version: {0}}"/>
<TextBlock Grid.Row="4" Text="{Binding Source={x:Static core:About.AssemblyCopyright}}"/>
<TextBlock Grid.Row="6" Text="{Binding Source={x:Static core:About.Author}}"/>
<!--<TextBlock Grid.Row="8" Text="{Binding AgeStr, StringFormat=Age: {0}}"/>-->
<controls:ButtonWithIcon Grid.Row="8" VerticalAlignment="Center"
Command="{Binding OpenLicense}"
Text="{Binding Source={x:Static core:About.License}}"
Icon="fas fa-balance-scale"/>
<TabControl Grid.Row="10">
<TabItem Header="Description">
<TextBox
IsReadOnly="True"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Text="{Binding Source={x:Static core:About.AssemblyDescription}}"/>
</TabItem>
<TabItem Header="OpenCV">
<TextBox
IsReadOnly="True"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Text="{Binding OpenCVBuildInformation}"/>
</TabItem>
<TabItem Header="Assemblies">
<TextBox
IsReadOnly="True"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"
Text="{Binding LoadedAssemblies}"/>
</TabItem>
</TabControl>
</Grid>
</Border>
</DockPanel>
</controls:WindowEx>
|