diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-01 15:20:37 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-01 15:20:37 +0200 |
| commit | a89c18abf7175f76f8673c12dac35d1658209d4e (patch) | |
| tree | 490f56c31347836c8b1e89f76fc3723431cad48b /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Views/MainView.xaml.cs | |
| parent | 06ad24ef8a414fc89c0cf42b9f5264d584292afe (diff) | |
| download | Tango-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.cs | 10 |
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); }; |
