Extending XAML Applications With Behaviors
Behaviors let you add functionality to existing controls and elements in a declarative fashion in your XAML. This course shows you how to use the built-in Blend behaviors to cover a wide range of scenarios and how to implement your own custom behaviors for any scenario as well.
What you'll learn
When building XAML applications in WPF, Silverlight, Windows 8, or Windows Phone, you will often find yourself saying, "If only this element had the ability to do X, Y, or Z from the XAML!" Behaviors are a pattern of extensibility in XAML that allow you to add capabilities to existing XAML elements yourself, even if you don’t have access to the source code of the elements you are trying to extend. You can extend elements that are part of the core XAML libraries, 3rd party controls, or even your own controls all using a set of pre-built behaviors or by building your own custom behaviors. In this course, you will learn what behaviors are all about, how they are built and work, and why you want to use them. You'll learn how to get highly productive quickly by using the pre-built Blend SDK and Behaviors SDK built-in behaviors, as well as how to build custom behaviors from scratch for more specialized scenarios. You will see how the same set of skills and built-in behaviors will allow you to apply the same kinds of functionality across the different XAML stacks of WPF, Windows 8, Windows Phone, and Silverlight.
Table of contents
- Introduction 2m
- FluidMoveBehavior 2m
- MouseDragElementBehavior 1m
- RemoveElementAction 1m
- Demo: FluidMoveBehavior 4m
- Demo: RemoveElementAction and MouseDragElementAction 3m
- FluidMoveSetTagBehavior 2m
- Demo: FluidMoveSetTagBehavior 6m
- TranslateZoomRotateBehavior 1m
- Demo: TranslateZoomRotateBehavior 1m
- Summary 1m
- Introduction 1m
- Approaching Custom Behaviors 3m
- Custom Behaviors Examples 7m
- Custom Blend SDK Behaviors 2m
- Custom Behaviors SDK Behaviors 2m
- Behaviors Lifecycle 2m
- Demo: Custom Blend SDK Behaviors Part 1 7m
- Demo: Custom Blend SDK Behaviors Part 2 4m
- Demo: Custom Blend SDK Trigger 9m
- Demo: Custom Behaviors SDK Behaviors 7m
- Summary 2m
- Course Wrap Up 1m