It's actually possible, however quite tricky. My example works without any code-behind, actually without any value converters, too. Here is the code: (now simplified version, thanks to @H.B. for ideas) <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Page.Resources> <S