Exemplo n.º 1
0
        void dynPort_Loaded(object sender, RoutedEventArgs e)
        {
            //Debug.WriteLine("Port loaded.");
            canvas = WPF.FindUpVisualTree <Dynamo.Controls.DragCanvas>(this);

            if (ViewModel != null)
            {
                ViewModel.UpdateCenter(CalculateCenter());
            }
        }
Exemplo n.º 2
0
 private void WorkBench_OnLoaded(object sender, RoutedEventArgs e)
 {
     WorkBench = sender as Dynamo.Controls.DragCanvas;
     WorkBench.owningWorkspace = this;
 }
Exemplo n.º 3
0
 private void WorkBench_OnLoaded(object sender, RoutedEventArgs e)
 {
     WorkBench = sender as Dynamo.Controls.DragCanvas;
     WorkBench.owningWorkspace = this;
 }