コード例 #1
0
 public static void RunViewSetup(this ActivityDesignerViewModel designerViewModel)
 {
     if (IsItemDragged.Instance.IsDragged)
     {
         designerViewModel.ShowLarge      = true;
         IsItemDragged.Instance.IsDragged = false;
     }
     else
     {
         designerViewModel.ShowLarge = false;
     }
 }
コード例 #2
0
 private static DataTemplate ReturnDataTemplate(ActivityDesignerTemplate template, ActivityDesignerViewModel vm)
 {
     template.DataContext = vm;
     return(TemplateGenerator.CreateDataTemplate(() => template));
 }