In WPF:
<Button Width="24" Height="24" > <Image Source="pack://application:,,,/res/x.png" VerticalAlignment="Center"/> </Button>
How can I mimic this in C#? I can't find any method in the Button class that adds children.
Button