September 2012
Intermediate to advanced
464 pages
10h 55m
English
Property triggers work with dependency properties only, but what about regular properties? This is where data triggers come in. They are able to inspect any property, but their usefulness lies within data templates that naturally bind to data objects (which utilize non-dependency properties). Let's see how to set that up.
Make sure Visual Studio is up and running.
We'll create a simple application to show books with a DataTemplate that is customized with data triggers to show some books a bit differently:
CH08.DataTriggerDemo.Book and implement it as follows:class Book { public string BookName { get; set; } public string AuthorName ...