В приложении MVVM WPF у меня есть рамка вокруг изображения:
<Border x:Name="PhotoBorder"
Background="Transparent"
Margin="3 0 5 0"
Grid.Row="3" Grid.RowSpan="7"
Grid.Column="0"
Height="110" Width="110"
HorizontalAlignment="Center"
CornerRadius="5"
BorderThickness="1"
BorderBrush="LightSteelBlue">
<Image x:Name="Photo"
Margin="3"
Height="{Binding ElementName=PhotoBorder, Path=Height-3}"
Width="{Binding ElementName=PhotoBorder, Path=Width-3}">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="{Binding Path=PhotoImg, Converter={StaticResource ImageConverter}}" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=PhotoImg}" Value="{x:Null}">
<Setter Property="Source" Value="/Resources/Photo.png"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Border>
Проблема в том, что черный фон отображается вокруг фотографии, как показано ниже:

Это происходит только в том случае, если свойство представления PhotoImg модели является нулевым в DataTrigger при непосредственном присоединении изображения "/Resources/Photo.png" к свойству "Source".
.. и я не знаю почему.Есть идеи?Что-то связано с фотографией?
Исходная фотография:

Примечание. Я использую Visual Studio 2008 и .NET Framework3,5