Monday, May 2, 2011

An ActivityDesigner for InvokeAction

Building off of An ActivityDesigner for InvokeAction

The only changes needed to make it work for InvokeAction was in the Xaml

< WrapPanel name="ArgumentWrapPanel">
and the OnModelItemChanged override:

 //set ETB expression type
            var generics = invokeActionObj.GetType().GetGenericArguments();
            if (generics.Length > 0)
            {
                this.ArgumentETB.ExpressionType = generics[0];
            }
            else
            {
                this.ArgumentETB.IsEnabled = false;
                this.ArgumentETB.Expression = null;
                this.ArgumentWrapPanel.Visibility = System.Windows.Visibility.Collapsed;

            }

No comments:

Post a Comment