I’ve been using various small XAML storyboard utilities and behaviors in my latest Window Phone and Windows Store apps. I’ve just packaged them all and released them into GitHub . Universal Helpers may not be that good of a name since the library is pretty small (yet) but I hope to enhance it in the future with more utilities and behaviors. So, let’s jump right in and see what’s under the hood! First of all, there are some Blend Behaviors. I love behaviors! Easy just as a Drag’n’Drop, yet so powerful! What’s even more great is that Windows 8.1 SDK has a Behaviors SDK , which, to no one's surprise, works with Windows Phone 8.1 Store apps. A limitation right now is that you can’t (at least easily ) write Behaviors in a portable class library, that’s why I’ve implemented them in the Shared project. Let’s see them, one by one. DragElementBehavior This behavior allows any element with a CompositeTransform to be dragged. It has options for inertia plus a container, in order to never be out of bounds (either by dragging

Διαβάστε περισσότερα »