In my last tutorial I showed you how to make a sliding panel (#72: http://wp.me/pWN5M-bu or direct URL: http://wp.me/pWN5M-eG). What I did was to have two identical buttons, one to slide the panel in and one to slide it out. I just made the appropriate one collapsed when the user clicked one. I did this all in Blend using the ControlStoryboard Behavior.
But my good friend Todd Knudsen challenged me over Twitter to make it all work using only one Button. I tried using the DataStore, changed all Storyboards to Visual States and using the ChangeDataStoreVale Action. No matter what I tried I could not get it to work. So I decided I would have to use code-behind (C#) in this situation and that is what I show how to do int his quick video. So take a look and enjoy!
PS: If anyone can help show me how to do this all in Blend, without having to use code, please shoot me an email at wpfauthor at gmail dot com. Thanks, Victor