protected PopupTip GetPopupTipWindow() { if (popup != null) { return(popup); } foreach (var item in Plotter.Children) { if (item is ViewportUIContainer) { ViewportUIContainer container = (ViewportUIContainer)item; if (container.Content is PopupTip) { return(popup = (PopupTip)container.Content); } } } popup = new PopupTip(); popup.Placement = PlacementMode.Relative; popup.PlacementTarget = plotter.CentralGrid; Plotter.Children.Add(popup); return(popup); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnChange = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\..\SubForms\wpfTerrainProfile.xaml" this.btnChange.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 2: this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 3: this.tbName = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this._groupLabel = ((Microsoft.Research.DynamicDataDisplay.Charts.ViewportUIContainer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.plotter = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 2: this._groupLabel = ((Microsoft.Research.DynamicDataDisplay.Charts.ViewportUIContainer)(target)); return; } this._contentLoaded = true; }
private static object CoercePosition(DependencyObject d, object value) { ViewportUIContainer owner = (ViewportUIContainer)d; if (owner.positionCoerceCallbacks.Count > 0) { Point position = (Point)value; foreach (var callback in owner.positionCoerceCallbacks) { position = callback(owner, position); } value = position; } return(value); }
private static void OnPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ViewportUIContainer container = (ViewportUIContainer)d; container.OnPositionChanged(e); }