The style creates one instance of Image ; you cannot use it in two places like this. You can create an image as a separate resource with x:Shared = false and refer to it in style, and then a new one will be created in each place where the style is used.
eg.
<UserControl> <UserControl.Resources> <Image x:Key="img" x:Shared="false" Source="D:\Temp\dictionary16.png" /> <Style x:Key="TestStyle" TargetType="{x:Type Button}"> <Setter Property="Content" Value="{StaticResource img}" /> </Style> </UserControl.Resources> <StackPanel VerticalAlignment="Top" HorizontalAlignment="Left"> <Button Style="{StaticResource TestStyle}" /> <Button Style="{StaticResource TestStyle}" /> </StackPanel> </UserControl>
source share