I know how to define ValidationRules using nested elements (e.g. here) but how can I do it inline? I.e.
<TextBox Text="{Binding Amount, ValidationRules=???, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}" >
I tried ValidationRules={StaticResource CashAmountRule}
where CashAmountRule points to my custom validation rule class but the compiler complains it is not a Collection value. How can I make it one?