Comment ajouter un StackPanel dans un bouton dans le code C # derrière

Comment ajouter un StackPanel dans un Bouton à l'aide de c# code derrière (c'est à dire convertir le code XAML suivant pour C# )? Il n'y a pas de Button.Children.Add...

<Button>
   <StackPanel Orientation="Horizontal" Margin="10">
      <Image Source="foo.png"/>
   </StackPanel>
</Button>

source d'informationauteur KMC