How do I import the VSM (Visual state manager) into my project? RRS feed

  • Question

  • I need to import the VSM into my project in order to call visual states and have no idea how

    Tuesday, June 8, 2010 3:29 PM

All replies

  • Blend 3 or 4? Wpf or SL?  Which version of WPF or SL?
    Tuesday, June 8, 2010 5:42 PM
  • WPF expression blend 3.
    Tuesday, June 8, 2010 6:09 PM
  • Is the WPFToolkit.dll assembly referenced in your project? If not, Blend can add it for you if you go to the states panel and add a state group. 


    If that doesn't work, the wpf toolkit may not be installed on your machine, you can find the installer here: http://wpf.codeplex.com/


    You could also check your programs and features list to see if wpftoolkit is there.

    Tuesday, June 8, 2010 6:23 PM
  • The toolkit is already installed on my system (trying to run the installer gives me the option to repair/remove).

    The WPFToolkit.dll is not referenced in the project references. (Nor is it referenced in a separate sample project source code that actually uses the VSM in the application)

    The WPF project already has visual stategroups defined from the sketchflow project. (Which work great under the prototype when using sketchflow controls).

    I found this but it's not overly helpful in applying to an existing project


    Tuesday, June 8, 2010 6:45 PM
  • Can you add a reference to the assembly in your project?  Right click references, pick add, then find the wpftoolkit.dll in :

    C:\Program Files (x86)\WPF Toolkit\v3.5.50211.1


    That is for a 64 bit system, on a 32 bit system remove the (x86)


    Tuesday, June 8, 2010 7:06 PM