I start with:
<Button>
<Button.Content>
<Rectangle Width="90" Height="20">
<Rectangle.Fill>
<SolidColorBrush Color="#444444" />
</Rectangle.Fill>
</Rectangle>
</Button.Content>
</Button>
I want to place the word "Discarded" on the button. I tried adding <TextBlock>Discarded</TextBlock>:
<Button>
<Button.Content>
<Rectangle Width="90" Height="20">
<Rectangle.Fill>
<SolidColorBrush Color="#444444" />
</Rectangle.Fill>
</Rectangle>
<TextBlock>Discarded</TextBlock>
</Button.Content>
</Button>
No matter where I insert <TextBlock>Discarded</TextBlock>, it results in an error.
I also want a white Foreground.