locked
How to add numeric up and down control for workflow custom activity property RRS feed

  • Question

  • I am trying to add the numeric up and down control for workflow custom activity property but unable to find how to do it could any one suggest me how to acheive this task
    Thursday, June 2, 2011 2:15 PM

Answers

  • Are you talking about a textbox with an up/down control?  Although I haven't done it personally, google turned up this when i searched : http://stackoverflow.com/questions/382676/good-numericupdown-equivalent-in-wpf.  Just follow one of the variations and place it in your custom activity designer.  Another option if you are not going the custom activity designer route and want to make it possible via the property sheet there is a perfect example of this in the WF example projects - /Wf/Basic/Designer/PropertyGridExtender - look for the "RepeatCount" property of the SimpleCodeActivity.

    The code can be found : http://msdn.microsoft.com/en-us/library/ee834515.aspx

    HTH,
    John 

    • Marked as answer by Andrew_Zhu Thursday, June 9, 2011 2:47 AM
    Friday, June 3, 2011 8:28 PM

All replies