I have a button with multiline-text:
<Button x:Name="Start" IsEnabled="False">
<TextBlock TextWrapping="Wrap">Some Text</TextBlock>
</Button>
If IsEnabled is False, then the button is disabled but the text inside the button is still black.
How can I set the button-text to a "disabled-style" - color?
It seems that if you wrap your TextBlock in a Label, it will honor the IsEnabled style changes:
<Button x:Name="Start" IsEnabled="False">
<Label>
<Label.Content>
<TextBlock Text="Some Text" TextWrapping="Wrap"/>
</Label.Content>
</Label>
</Button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With