private static void OnPropertyGraphChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { if (obj is GraphLayout) { GraphLayout graphLayout = (GraphLayout)obj; graphLayout.UpdateVerticesLayout(); graphLayout.Graph.Changed += graphLayout.GraphChanged; } }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Graphviz4Net.SL.Example;component/MainPage.xaml", System.UriKind.Relative)); this.Graph = ((Graphviz4Net.WPF.GraphLayout)(this.FindName("Graph"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 12 "..\..\..\ACLightWindow.xaml" ((Graphviz4Net.WPF.Example.ACLightWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.GraphLayout = ((Graphviz4Net.WPF.GraphLayout)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 11 "..\..\..\MainWindow.xaml" ((Graphviz4Net.WPF.Example.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.DataWindow_Closing); #line default #line hidden #line 14 "..\..\..\MainWindow.xaml" ((Graphviz4Net.WPF.Example.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 14 "..\..\..\MainWindow.xaml" ((Graphviz4Net.WPF.Example.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged); #line default #line hidden return; case 5: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 6: this.stackPanelButtons = ((System.Windows.Controls.StackPanel)(target)); return; case 7: this.toggleACLight = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 299 "..\..\..\MainWindow.xaml" this.toggleACLight.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked); #line default #line hidden #line 299 "..\..\..\MainWindow.xaml" this.toggleACLight.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_UnChecked); #line default #line hidden return; case 8: this.imgACLight = ((System.Windows.Controls.Image)(target)); return; case 9: this.toggleSkeleton = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 334 "..\..\..\MainWindow.xaml" this.toggleSkeleton.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked); #line default #line hidden #line 334 "..\..\..\MainWindow.xaml" this.toggleSkeleton.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_UnChecked); #line default #line hidden return; case 10: this.imgSkeleton = ((System.Windows.Controls.Image)(target)); return; case 11: this.toggleSIDHistory = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 359 "..\..\..\MainWindow.xaml" this.toggleSIDHistory.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked); #line default #line hidden #line 359 "..\..\..\MainWindow.xaml" this.toggleSIDHistory.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_UnChecked); #line default #line hidden return; case 12: this.imgSID = ((System.Windows.Controls.Image)(target)); return; case 13: this.toggleRisky = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 384 "..\..\..\MainWindow.xaml" this.toggleRisky.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked); #line default #line hidden #line 384 "..\..\..\MainWindow.xaml" this.toggleRisky.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_UnChecked); #line default #line hidden return; case 14: this.imgRisky = ((System.Windows.Controls.Image)(target)); return; case 15: this.toggleMystique = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 409 "..\..\..\MainWindow.xaml" this.toggleMystique.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_Checked); #line default #line hidden #line 409 "..\..\..\MainWindow.xaml" this.toggleMystique.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_UnChecked); #line default #line hidden return; case 16: this.imgMistique = ((System.Windows.Controls.Image)(target)); return; case 17: this.LaunchZbang = ((System.Windows.Controls.Button)(target)); #line 434 "..\..\..\MainWindow.xaml" this.LaunchZbang.Click += new System.Windows.RoutedEventHandler(this.launchPowershellButton_clicked); #line default #line hidden return; case 18: this.Launch = ((System.Windows.Controls.Button)(target)); #line 435 "..\..\..\MainWindow.xaml" this.Launch.Click += new System.Windows.RoutedEventHandler(this.launchButton_clicked); #line default #line hidden return; case 19: this.ExportButton = ((System.Windows.Controls.Button)(target)); #line 436 "..\..\..\MainWindow.xaml" this.ExportButton.Click += new System.Windows.RoutedEventHandler(this.Export_clicked); #line default #line hidden return; case 20: this.ImportButton = ((System.Windows.Controls.Button)(target)); #line 437 "..\..\..\MainWindow.xaml" this.ImportButton.Click += new System.Windows.RoutedEventHandler(this.Import_clicked); #line default #line hidden return; case 21: this.imageLogo = ((System.Windows.Controls.Image)(target)); return; case 22: this.tabControl = ((System.Windows.Controls.TabControl)(target)); #line 472 "..\..\..\MainWindow.xaml" this.tabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged); #line default #line hidden return; case 23: this.ACLLight = ((System.Windows.Controls.TabItem)(target)); #line 479 "..\..\..\MainWindow.xaml" this.ACLLight.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabItemACL_Clicked); #line default #line hidden return; case 24: this.bulletACL = ((System.Windows.Controls.Image)(target)); return; case 25: this.SkeletonItem = ((System.Windows.Controls.TabItem)(target)); #line 487 "..\..\..\MainWindow.xaml" this.SkeletonItem.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabItemSkeleton_Clicked); #line default #line hidden return; case 26: this.bulletSkeleton = ((System.Windows.Controls.Image)(target)); return; case 27: this.SIDHistoryItem = ((System.Windows.Controls.TabItem)(target)); #line 496 "..\..\..\MainWindow.xaml" this.SIDHistoryItem.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabItemSID_Clicked); #line default #line hidden return; case 28: this.bulletSID = ((System.Windows.Controls.Image)(target)); return; case 29: this.SPNItem = ((System.Windows.Controls.TabItem)(target)); #line 505 "..\..\..\MainWindow.xaml" this.SPNItem.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabItemSPN_Clicked); #line default #line hidden return; case 30: this.bulletSPN = ((System.Windows.Controls.Image)(target)); return; case 31: this.MystiqueItem = ((System.Windows.Controls.TabItem)(target)); #line 513 "..\..\..\MainWindow.xaml" this.MystiqueItem.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabItemMystique_Clicked); #line default #line hidden return; case 32: this.bulletMystique = ((System.Windows.Controls.Image)(target)); return; case 33: this.zoomControl = ((WPFExtensions.Controls.ZoomControl)(target)); return; case 34: this.showmach = ((System.Windows.Controls.MenuItem)(target)); #line 534 "..\..\..\MainWindow.xaml" this.showmach.Click += new System.Windows.RoutedEventHandler(this.menuShowMachines); #line default #line hidden return; case 35: #line 535 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.menuRefresh); #line default #line hidden return; case 36: this.GraphLayout = ((Graphviz4Net.WPF.GraphLayout)(target)); #line 545 "..\..\..\MainWindow.xaml" this.GraphLayout.OnLayoutUpdated += new System.EventHandler <System.EventArgs>(this.OnGraphLayoutUpdated); #line default #line hidden return; case 37: this.showmach2 = ((System.Windows.Controls.MenuItem)(target)); #line 548 "..\..\..\MainWindow.xaml" this.showmach2.Click += new System.Windows.RoutedEventHandler(this.menuShowMachines); #line default #line hidden return; case 38: #line 549 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.menuRefresh); #line default #line hidden return; case 39: this.backButton = ((System.Windows.Controls.Button)(target)); #line 568 "..\..\..\MainWindow.xaml" this.backButton.Click += new System.Windows.RoutedEventHandler(this.GoBackButton); #line default #line hidden return; case 40: this.imgArrowLeft = ((System.Windows.Controls.Image)(target)); return; case 41: this.PleaseWaitText = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.TextBox = ((System.Windows.Controls.TextBox)(target)); return; case 43: this.rtbACL = ((System.Windows.Controls.RichTextBox)(target)); return; case 44: this.exportButt = ((System.Windows.Controls.Button)(target)); #line 593 "..\..\..\MainWindow.xaml" this.exportButt.Click += new System.Windows.RoutedEventHandler(this.Export_clicked); #line default #line hidden return; case 45: this.Help = ((System.Windows.Controls.Button)(target)); #line 594 "..\..\..\MainWindow.xaml" this.Help.Click += new System.Windows.RoutedEventHandler(this.helpButton_clicked); #line default #line hidden return; case 46: this.relaunchButt = ((System.Windows.Controls.Button)(target)); #line 601 "..\..\..\MainWindow.xaml" this.relaunchButt.Click += new System.Windows.RoutedEventHandler(this.relaunch_clicked); #line default #line hidden return; case 47: this.popupPicture = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 48: this.theTransform = ((System.Windows.Media.RotateTransform)(target)); return; case 49: this.imgPopup = ((System.Windows.Controls.Image)(target)); return; case 50: this.lblCursorPosition = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
public LayoutAction(GraphLayout parent, LayoutDirector director) { this.parent = parent; this.director = director; }