Your binding will need to change to be the following:
Content="{Binding Path=[foo], Source={x:Static local:X.MyDict}}"
If you look at Binding Paths from the MSDN, you will see that string indexers can be specified in XAML. local will be the xmlns representing the namespace X resides in.