How to bind to a StaticResource with a Converter?

This works:

<TextBox Text="{Binding Source={StaticResource myStatic}, 
                        Converter={StaticResource myConverter},
                        Mode=OneWay}" />

Note that you have to bind one way, because the binding requires a path attribute otherwise. This makes sense, as otherwise the binding would have to replace the whole resource…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)