private static void GraphLayoutChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { DiagramView dv = sender as DiagramView; if (dv == null) { return; } dv.OnItemsSourceChanged(e); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Ribbon = ((System.Windows.Controls.Ribbon.Ribbon)(target)); return; case 2: this.Help = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 3: this.QATButton1 = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 4: this.QATButton2 = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); return; case 5: this.MenuItem1 = ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)); return; case 6: this.HomeTab = ((System.Windows.Controls.Ribbon.RibbonTab)(target)); return; case 7: this.Group1 = ((System.Windows.Controls.Ribbon.RibbonGroup)(target)); return; case 8: this.Button1 = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); #line 36 "..\..\..\MainWindow.xaml" this.Button1.Click += new System.Windows.RoutedEventHandler(this.Open_UML_file); #line default #line hidden return; case 9: this.FormatTab = ((System.Windows.Controls.Ribbon.RibbonTab)(target)); return; case 10: this.DiagramView = ((WpfDiagramDesigner.DiagramView)(target)); return; } this._contentLoaded = true; }
public DiagramVisualHost(DiagramView view) { _view = view; _nodeContents = new Dictionary <NodeLayout, FrameworkElement>(); ClipToBounds = true; HorizontalAlignment = HorizontalAlignment.Center; VerticalAlignment = VerticalAlignment.Center; MouseMove += DiagramVisualHost_MouseMove; MouseLeave += DiagramVisualHost_MouseLeave; }