Expression Blend and Design

The team blog of the Expression Blend and Design products.

How to add mockup controls to your Expression Blend library

How to add mockup controls to your Expression Blend library

  • Comments 21

In Expression Blend 4, one of the new samples we added is called MockupDemonstration. If you haven’t had a chance to use it yet, you can open MockupDemonstration from the Welcome screen, which is available when you first start Expression Blend or when you click Help and then click Welcome Screen. In the Welcome screen, click Samples, and then click MockupDemonstration:

clip_image001[4]

As you can tell quickly from exploring this sample, this sample contains a handful of controls designed to help you create prototypes easily. The catch is that these controls only exist within the confines of this particular sample. Since some of you have requested that it would be useful to have these controls available outside of the sample, this blog post will explain how to make these mockup controls available in other projects.

To enable mockup controls for any SketchFlow project, copy the mockup controls run-time and design-time assemblies from the MockupDemonstration sample to the pre-configured Libraries folder by following the steps below:

1. Copy both Microsoft.Expression.Prototyping.MockupsSL.dll and Design folder from:

Documents > Expression > Blend 4 > Samples > MockupDemonstration > MockupDemonstration > Libraries > Silverlight > Debug
 
(for WPF projects, follow this step but copy files from > Libraries > .NETFramework > Debug)

2. Add copied files to the following destination:

Computer > OS (C:) > Program Files(x86) > Microsoft Expression > Blend 4 > Libraries > Silverlight > 4.0 >
 
(for WPF paste the copied files from the NETFramework folder in the previous step to … > Libraries >  .NETFramework > 4.0)

clip_image007[4]

3. Restart Blend. You can now start using mockup controls by clicking the Mockups category in the Assets panel (the appropriate assembly reference is automatically added to your project).

If you have any questions or comments, please feel free to post below or on our forums.

Thanks,

Dante, Rick, Billy

Leave a Comment
  • Please add 8 and 6 and type the answer here:
  • Post
  • I'm suprised to be the first to comment on this.  The mockup controls are a great addition to sketchFlow.  I just want to let you know. This is going to be very useful for us.  Thanks a bunch.

  • The forums link is actually "http://link-to-blend-forums/".  Probably need to fixit.  Thanks...

  • The forum link is , but here it is: "http://link-to-blend-forums/"

    social.expression.microsoft.com/.../blend

  • Great controls - but it might have been smarter to have this as an option during setup.

  • I suspect I'm super blonde: I've gone to Codeplex to install the MockupsLibrary.msi, but it doesn't install for some reason. And the instructions to install per the blog post only gives me the controls that were already there - odd. Do those blue icons exist? and if so, where do I get them from?

  • @Andrew

    Hi Andrew, that was our initial intent, but it was challenging finding resources to fully test this sample. We decided to publish this as out of band, but I agree that it would have been preferable to intall this automatically during setup.

  • @FirstPinkGirl

    After installing, the Mockups controls will appear in your Assets library, under SketchFlow > Mockups.

    The blue icons are IconMockups. Add one to the artboard and in your Properties pane, go to Common Properties and change the IconImage dropdown to your desired icon. Hope this helps :)

  • I am sorry ,there is no folder called design in my debug folder.

  • @jerry

    Have you tried loading and building the project yet? This should create a design folder in your debug folder.

  • Those are cool, but can you create your own? If so could you please let me know how.

    Thanks.

  • @paul

    One way to create something similar is making a user control. Press ctrl+n to create a new item and choose UserControl (don't forget to give it a name). A new document tab will open where you can create your own "mockup item." Once created, rebuild the project (ctrl+shift+b) and your newly created control will appear in the Asset library, under the Projects category.

    Hope this helps, please let me know if you have further questions :)

  • Thanks, worked exactly as described.

  • can I use these Mockup controls in SketchFlow 3 ?

  • I tried the steps outlined above, but still do not see the Mockups under Assets.  Any suggestions?

    Thanks.

  • @BenBen,

    They will not work as-is in Blend/SketchFlow V3.  It may be possible to adopt the library for use in Blend 3 from the sources on codeplex, but it is probably easier to just upgrade to Blend/SketchFlow V4.

Page 1 of 2 (21 items) 12