public WorkflowItemsPresenterAutomationPeer(WorkflowItemsPresenter owner)
     : base(owner)
 {
     this.owner = owner;
 }
 public WorkflowItemsPresenterAutomationPeer(WorkflowItemsPresenter owner)
     : base(owner)
 {
     this.owner = owner;
 }
        static void OnItemsPanelChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            WorkflowItemsPresenter itemsPresenter = (WorkflowItemsPresenter)dependencyObject;

            itemsPresenter.panel.ItemsPanel = (ItemsPanelTemplate)e.NewValue;
        }
        static void OnItemsChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            WorkflowItemsPresenter itemsPresenter = (WorkflowItemsPresenter)dependencyObject;

            itemsPresenter.OnItemsChanged((ModelItemCollection)e.OldValue, (ModelItemCollection)e.NewValue);
        }
        static void OnHintTextChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            WorkflowItemsPresenter itemsPresenter = (WorkflowItemsPresenter)dependencyObject;

            itemsPresenter.UpdateHintTextVisibility(e.NewValue as string);
        }
 void OnBranchesPresenterUnloaded(object sender, RoutedEventArgs e)
 {
     this.branchesPresenter = null;
 }
 void OnBranchesPresenterLoaded(object sender, RoutedEventArgs e)
 {
     this.branchesPresenter = (WorkflowItemsPresenter)sender;
 }