Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,783 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
<TextBox Name="txtSlot" Text="{Binding Path=GebindeSlot, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="33" Margin="22,376,183,232" Grid.Column="3" />
Hello,
How can I change the background color from the code?
If GebindeSlot.length == 0
White
else
Green.
Thanks!
You can set your TextBox like below: