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