#1,204 - Using a DataTrigger to Change Content in a ContentPresenter

added by DotNetKicks
4/7/2017 12:56:34 PM

1 Kicks, 299 Views

You can set the ContentTemplate property of a ContentPresenter to a panel containing some content, using a DataTemplate. This technique becomes even more useful when you have different types of content to display, depending on a particular state in your application. In the example below, we set up a Style for a ContentPresenter that sets...