aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-01 15:20:37 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-01 15:20:37 +0200
commita89c18abf7175f76f8673c12dac35d1658209d4e (patch)
tree490f56c31347836c8b1e89f76fc3723431cad48b /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
parent06ad24ef8a414fc89c0cf42b9f5264d584292afe (diff)
downloadTango-a89c18abf7175f76f8673c12dac35d1658209d4e.tar.gz
Tango-a89c18abf7175f76f8673c12dac35d1658209d4e.zip
Added Developer Module Settings & More...
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
index e6f685535..cdf2248a6 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs
@@ -17,14 +17,17 @@ using Tango.DragAndDrop;
using Tango.MachineStudio.Developer.Converters;
using Tango.MachineStudio.Developer.ViewModels;
using System.Windows.Threading;
+using Tango.SharedUI;
namespace Tango.MachineStudio.Developer.Views
{
/// <summary>
/// Interaction logic for MainView.xaml
/// </summary>
- public partial class MainView : UserControl
+ public partial class MainView : UserControl, IMainView
{
+ public static MainView Self { get; set; }
+
private MainViewVM _vm;
private DispatcherTimer _jobBrushTimer;
@@ -36,14 +39,19 @@ namespace Tango.MachineStudio.Developer.Views
public static readonly DependencyProperty DraggingSurfaceProperty =
DependencyProperty.Register("DraggingSurface", typeof(DraggingSurface), typeof(MainView), new PropertyMetadata(null));
+ public event EventHandler<IView> ViewAttached;
+
public MainView()
{
+ Self = this;
+
InitializeComponent();
DraggingSurface = draggingSurface;
this.Loaded += (x, y) =>
{
_vm = DataContext as MainViewVM;
+ ViewAttached?.Invoke(this, this);
};
chkGraphs.Checked += (x, y) => { graphRowDefinition.Height = new GridLength(440, GridUnitType.Pixel); };