I created a workflow in Microsoft Dynamics CRM 2011 which I then exported and opened the XAML file with VS 2010. It shows me this when I open it:
But there are actually many more steps in this workflow. Why can't I see them or edit them? I tried clicking Expand All at the top right, but that didn't seem to make any difference. If I look at the actual code I can see the numerous steps - but no in the design view. Any ideas why?
The activities in your screenshot are custom activities. By default all you see is this placeholder. You can however create custom activity designers and associate the activities with those. In your custom activity designer you can do anything you can do in WPF including showing the child activities.
Related
I have been trying to get my head around the SDK API for visual studio for a while now. The problem is I know what I want/need to do. However I can not find a code example or API documentation anywhere that allows me to do what I want :(
I know its possible just I cant find documentation to show how.
I want to add another sidebar ribbon for all open files similar to how the breakpoint works (And many test add-ins for VS, NCrunch comes to mind...) that is blank as standard but when clicked allows some logic to be run to add a comment on that line.
Once added a Icon will be then displayed on that line allowing you to click the icon to view/edit the left comment. (The storage of this etc. is not a problem with the implementation I am doing) I just really need to know how to tell the API to add a new ribbon/side thing and plumb in the required logic :/
If this isn't possible I also had the idea of highlighting the word and again a icon popping up but that seems even more annoying to implement hence why I chose the side option if it is at all possible :/
Thanks in Advance to anyone who helps :D
The "sidebar ribbon" is called an editor margin. See Editor Extension Points.
Implement an IWpfTextViewMargin interface to define a margin. You must
also implement the IWpfTextViewMarginProvider interface to create the
margin.
I am using the Visual Studio SDK to add in some additional functionality to visual studio.
I have a button that when pressed will perform a potentially long running task (maybe 10-15 seconds) and I would like to change the button Icon to include some indication that the task is being performed, and then again change the icon to show that the task has been completed.
Reading through the MSDN articles has shown me how to customise my icon, but I am having trouble figuring out how to change it at run time. The MSDN article configures its icons in an xml config file.
Essentially my question is how do I control the button icon in code? I have provided the link to the MSDN article that I have been using below
http://msdn.microsoft.com/en-us/library/bb165158.aspx
Thanks in advance
James
It is not a good idea (it's non standard, you can use a progress dialog or the status bar of VS instead), but if you really want you can try the following approach:
1) Get the CommandBar that has the button
2) Get the CommandBarControl in the CommandBar.Controls collection
3) Cast the CommandBarControl to CommandBarButton
4) Use the CommandBarButton.Picture and CommandBarButton.Mask properties. See section #2 of my article:
HOWTO: Creating custom pictures for Visual Studio .NET add-ins commands, buttons and toolwindows.
In Outlook 2007 you have the navigation panel, consisting of "Mail","Calendar","Contacts","Tasks" etc (this is all below the tree structure).
1) Is it possible (and if so, how?) to insert another user-defined button between, say, "Mail" and "Calendar"?
2) Programatically, how could I minimise the main pane? So if I was in "Mail", the main pane would be "Inbox".
I have been using Add-in Express for customisation, but I dont believe it can do the above and could be a general .NET question.
Do you mean create an additional button inside Outlook, or reuse the button styles/etc in a 3rd party application?
If you mean inside Outlook, then yes, Outlook 2010 (not 2007) provides some OM hooks to add 1 additional button here. It's called the Solutions module. If there is only one solution installed, the name of the button takes the title of the solution. If there are multiple solutions then the title reverts to "Solutions"
If you mean outside of Outlook, then no. It's not possible. These buttons are not COM components (in fact, they're not even proper HWNDs).
1.) You cannot create new Navigation Modules in the Navigation Pane. See MSDN forums for related question.
2.) An Outlook View Control will let you takeover the currently active view pane.
I have looked at several tutorials on writing general Outlook add-ins, and have gotten simple examples to work: items in menu, context menu, ribbons, etc.
Many of Microsoft's documentation has send me in circles, or is in VB, so I have run into some questions with what we are trying to accomplish.
Is there a way to add a custom control below the Subject line in a new email? We need to supply a drop-down and add an additional header to emails sent for email tracking. Right now the best I have gotten is adding a CommandBarButton in the "Add-ins" tab of the Ribbon, is there a better method?
Will we run into any issues installing for multiple versions of outlook? (Will only 2007 and higher work?)
Can you host WPF controls directly in a Ribbon, etc.? I know that WPF popup windows work just fine when shown from a CommandBarButton.
Are there some good links out there for what we're trying to do?
2: Multi-version support is a PITA. The hedge-your-bets approach is to develop on a PC running the version of Outlook you want to support; thus you may have multiple setup packages for each supported version. Everybody tries to get around this though, but I've used this approach with success:
Version-Specific UI in Add-ins - Andrew Whitechapel - Site Home - MSDN Blogs:
http://blogs.msdn.com/b/andreww/archive/2008/09/02/version-specific-ui-in-add-ins.aspx
4: Essential resources:
Visual Studio Tools for Office For Office and Outlook for Developers Forums on MSDN
OutlookCode.com
(FYI, I work for Add-in Express)
No, not without implementing the entire message window.
We have to make 2 projects for 2007 and 2010, we are skipping 2003 and below b/c it is much more difficult and would be rarely used.
Can't host WPF in a Ribbon, we're going to display a WPF popup from a Ribbon button press.
Best thing I've found is to just follow the project template in Visual Studio and mess around.
Overall, our add-in is going to do the following:
Make 2 projects for 2010 and 2007 that share a "Shared" assembly
All reusable work is done in the shared assembly
WPF is only displayed via popup windows (you can do a custom task pane, but it doesn't make sense for our add-in)
I've been prototyping this Workflow editor for end users and I've based my source from [MSDN]http://msdn.microsoft.com/en-us/library/aa480213.aspx. So far, I've made the following tweaks:
I've added a new project called Workflow.Core which will house custom activities and default workflows.
The toolbox now shows custom activities that are included in Workflow.Core.
On load, the workflow designer will show a default workflow from Workflow.Core instead of an empty SequentialWorkflowActivity. Aside from defining the initial flow of activities, the default workflow contains properties that are set and modified during workflow runtime.
The problem is that WorkflowView wont let me edit the default workflow. It's like it's in read-only mode, although I can still edit its attributes. It worked fine when I was loading an instance of SequentialWorkflowActivity.
Then I tried adding the default workflow's activities to an instance of SequentialWorkflowActivity and load that instead. It worked. I was able to drag new activities onto it and make property changes. But in doing so, the referenced properties within the default workflow are no longer available.
There is an alternative: that I make and include an activity to house all properties instead of the default workflow itself. It, however, will need explaining to the client (whom I don't think will understand) why there's an omnipresent activity in all their custom workflows which does no discernible business logic.
In summary, I need to make workflow designer edit the default workflows. So if you guys have any ideas or suggestions, please let me know. I need all the help I can get.
Thanks in advance!
Carlos