我想根据从 Binding(值)接收到的数据(1、2、3...)更改 StackPanel 的颜色,我应该使用哪个?
<StackPanel Grid.Column="1">
<Border Height="50" Width="Auto" Margin="3" Background="Black">
<TextBlock FontSize="18" FontWeight="Bold" TextWrapping="Wrap" Foreground="White"
Text="{Binding valor}" VerticalAlignment="Center"
HorizontalAlignment="Center"/>
</Border>
</StackPanel>