次のように、すべてのコンバーターをリソース ディクショナリで定義できます。
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:loc="...">
<loc:BooleanToVisibilityConverter x:Key="BooleanToVisibility" />
<loc:MakeAllCapsConverter x:Key="MakeAllCaps" />
<!-- Define all the common converters here -->
</ResourceDictionary>
MergedDictionaries
これで、次のようにして、このリソース ディクショナリをどこにでもインポートできます。
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Converters.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
<TextBlock Text="{Binding Target, Converter={StaticResource MakeAllCaps}}" />