2,854 questions
You can set your TextBox like below:
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: