Esempio n. 1
0
 private static void AssignSimulationViewModeAndView(DesignerItem item, Tuple <ViewModels.ViewModelBase, UserControl> result)
 {
     if (result != null)
     {
         result.Item2.DataContext = result.Item1;
         item.Content             = result.Item2;
         item.UpdateLayout();
         item.DataContext = null;
         var connectors = item.GetConnectors();
         foreach (var connector in connectors)
         {
             connector.ConnectionChanged += Connector_ConnectionChanged;
         }
     }
 }