0
私は3つのラジオボタン「はい/いいえ/保留中」を含む灰色のグリッドを持っていますが、選択した値に基づいてグリッドの色を変更します。RadioButtonに基づいてグリッドの背景色を変更します
値がyesの場合、グリッドは緑色になります。
valieがNoの場合はグリッドが赤くなります。
<Grid Background="#FFF2F2F2" Height="34" HorizontalAlignment="Left" Name="grid19" VerticalAlignment="Top" Width="151">
<RadioButton Content="Yes" Height="16" HorizontalAlignment="Left" Margin="2,12,0,0" Name="radioButton1" VerticalAlignment="Top" />
<RadioButton Content="No" Height="16" HorizontalAlignment="Left" Margin="46,12,0,0" Name="radioButton2" VerticalAlignment="Top" />
<RadioButton Content="Pending" Height="16" HorizontalAlignment="Left" Margin="86,12,0,0" Name="radioButton3" VerticalAlignment="Top" />
</Grid>
多くの感謝^^私はデフォルトを削除した
thanlsさんが働いています^^ –