September 2012
Intermediate to advanced
464 pages
10h 55m
English
Data binding is classically done between a user interface element and a data object. Sometimes, however, it's useful to bind one element's property to another's property. This can reduce (or even eliminate) the need for handling conventional events. Let's see how to make this work. This will also serve as a good start for doing bindings of any kind.
Make sure Visual Studio is up and running.
We'll create a Slider that affects the font size of a TextBlock without using any code.
CH06.ElementToElementBindings.MainWindow.xaml. Add the following markup to the existing Grid:<Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="Auto" /> <RowDefinition ...