Peter van Kekem
Peter van Kekem

Reputation: 1447

WPF Optional Binding

I have an existing XAML file with some data templates in it. One of these datatemplate can be used in different situations. Therefore, I want to bind 1 of the properties only if a certain condition is true.

What is the best way to achieve this?

Upvotes: 1

Views: 788

Answers (1)

Peter van Kekem
Peter van Kekem

Reputation: 1447

I worked around the issue by creating another datatemplate that overrides the original. Thanks for your help.

Upvotes: 2

Related Questions