WPF visual state manager in Blend 2 sp1

2019-06-21 13:07发布

Can anyone explain to me how to get the visual state manager to work with a WPF application? It's just been added to the new wpftoolkit. I installed it as told, but even the sample doesn't show the VSM. In silverlight it work, but not in WPF. If installed the latest Blend 2 and updated with the SP1.

3条回答
爷、活的狠高调
3楼-- · 2019-06-21 13:31

Read these 2 articles on VSM in WPF:

Their is a registry setting that needs to be "turned on" for VSM in WPF support for blend... Read more here

查看更多
男人必须洒脱
4楼-- · 2019-06-21 13:36

rudigrobler, you've got me thinking... There should be a registry key... So I've just opened Blend in Reflector and started searching...

I've found the location:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Expression\Blend

And added the key a DWORD with the name EnableVSM and gave it the value 1

Now it works!

Easiest way to enable is to create a new .Reg file and add the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Expression\Blend]
"EnableVSM"=dword:00000001

Now run it and you're done.

查看更多
登录 后发表回答