Microsoft’s answer to google map reduce and hadoop for distributed computing is Dryad.
http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx
Microsoft’s answer to google map reduce and hadoop for distributed computing is Dryad.
http://research.microsoft.com/en-us/collaboration/tools/dryad.aspx
Blend 3 has added two new assemblies which consists of new functionalities including advance behaviors
These advance behavior classes lets you create attached behaviors with simplicity. Code snippet below shows how to create a behavior which can be applied on any UIElement’s Routed event and when that event is triggered the given command is invoked with its command parameters. These behaviors help us write clean code and we dont have to deal with click events when using M-V-vM pattern. We can wite our command and bind that command to any routed event on any user interface element and implement the command on view model.
Once you create a class with the above code and open the project in blend and open any UI, you can see the following view in the asset tab. Marked in red is our behavior.
Drop the behavior onto any UIElement
Finally you can see how we can select the Event and bind the command and command parameters in the properties tab.
XAML for above blend designer setting.
As we all know that Designer-Developer workflow is not feasible when the application is developed in Prism (Composite Application Guidance). Prism requires each use case to have it’s functionality in different modules and load these modules at run-time.
Due to runtime loading of the user control neither Visual Studio or Blend can be used for implementing designer-developer workflow as the user interface cannot be seen in its entirety.
Here is what i implemented with the help of Marc Jacobs . We create an attached behavior that can be set on any ContentControl or ItemsControl. This attached behavior takes the user control which we need to display while design-time.
The magic happens in the OnContentChanged method, when we set the attached behavior content this method is invoked. The code inside the method only inserts the user control in the design mode.
The only downside of using this technique is having the user controls declared in the resource dictionary. Also below are the snapshots of the application in design and runtime mode.
| Design time snapshot | Runtime snapshot |
Code DesignTimePrism.zip