WPF Calling method from a DataTrigger
问题 Is it possible to use a wild card or call a method to work out if a DataTrigger should be applied? I currently have my DataList bound to an IEnumerable that contains file names and I want the file names to be greyed out if there files extension starts with "old" My non-working dream xaml markup looks something like this: <DataTemplate.Triggers> <DataTrigger Binding="{Binding}" Value="*.old*"> <Setter TargetName="FileName" Property="Foreground" Value="Gray"/> </DataTrigger> </DataTemplate