aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Controls/View.cs
blob: 30fc5017264718f2289517ee5cd9e174be014926 (plain)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Tango.SharedUI.Controls
{
    public class View : UserControl, IView
    {
        public event EventHandler<IView> ViewAttached;

        public static IView Self { get; set; }

        public View()
        {
            Self = this;
            Loaded += View_Loaded;
        }

        private void View_Loaded(object sender, RoutedEventArgs e)
        {
            ViewAttached?.Invoke(this, this);
        }
    }
}