Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The list of ingredients isn’t all that useful by itself. What we really want the window to do is display the details of whichever item is selected in the ListBox. It’s a UI pattern called MASTER-DETAIL, and it’s wonderfully easy to do in WPF. Just set the magic IsSynchronizedWithCurrentItem property to true. (IsSynchronizedWithCurrentItem is defined by Selector and inherited by all the items controls that support selection, including ListBox.) Any other elements bound to the same collection will automatically display values from the selected item.