-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutControlView.xaml.cs
52 lines (49 loc) · 1.67 KB
/
AboutControlView.xaml.cs
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
// <copyright file="AboutControlView.xaml.cs" company="None">
// MIT License (MIT). All rights reserved
// </copyright>
// <author>Christoph Gattnar</author>
// <summary>This is the AboutControlView class.</summary>
namespace BlueDot
{
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Navigation;
/// <summary>
/// Interaction logic for AboutControlView.xaml
/// </summary>
public partial class AboutControlView : UserControl
{
public AboutControlView()
{
InitializeComponent();
}
/// <summary>
/// Hyper link in about box.
/// </summary>
/// <param name="sender">Object System.</param>
/// <param name="e">Request Navigate Event Args.</param>
private void Link_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
e.Handled = true;
}
/// <summary>
/// User control of left button down on mouse.
/// </summary>
/// <param name="sender">Object System.</param>
/// <param name="eventArgs">Request Navigate Event Args.</param>
private void UserControl_MouseLeftButtonDown(object sender, MouseButtonEventArgs eventArgs)
{
if (eventArgs.ChangedButton == MouseButton.Left)
{
Window parent = Parent as Window;
if (parent != null)
{
parent.DragMove();
}
}
}
}
}