Does anyone have a DataStateSwitchBehavior for WPF4?

Does anyone have a working version of WPF4 DataStateSwitchBehavior? This was part of Siverlight's Expression Expression Samples at: http://expressionblend.codeplex.com/wikipage?title=Behaviors%20and%20Effects&referringTitle=Documentation

Thanks!

0
wpf behavior
source share
2 answers

If you download the source code from the codeplex link you mentioned, it also includes the source for WPF. This is version 3.5, but it should not be a huge deal.

If you want only DataStateSwitchBehavior, you can start a new project, add the source files:

BindingListener.cs ConverterHelper.cs DataStateSwitchBehavior.cs GoToState.cs

and add a link to the dll Blend. It compiles and works.

0
source share

Not sure if DataStateSwitchBehavior for WPF4 will work with it, but there is an updated version on CodePlex submitted by the user: http://expressionblend.codeplex.com/workitem/8148

See this blog post for more information (mainly in the case of SL4 it was a workaround that doesn't work and is not required now): http://blog.thekieners.com/2010/11/09/expression-blend- samples-not-working-with-silverlight-4-and-wpf-4 /

0
source share

All Articles