I’d like to have the texblock is not visible if the value that generated dynamically is equal to zero. I think it can be done solely in XAML using DataTrigger. I am wondering if someone can help to find the proper solution for this.
Thank you in advance.
I’d like to have the texblock is not visible if the value that generated
Share
If you just want to hide the textbox based on the value of that same textbox you could use something like the code below.
You can add in a binding if you wanted. Also if you need to check the value of a different textbox to determine if this one should be shown you can alter the binding on the DataTrigger.