-1

I want to hide some radio buttons based on a value. How to do that?

I was trying this.

if(ArbeitsplatzId==400)
{
    //RbAmWartungRbRüstenRbRPMWartungRbSchichtwechsel
    RbAmWartung.Visibility = false;
    RbAmWartung.Visibility = "Hidden";            
}

in xaml code it's wotking with this: Visibility="Hidden"

1
  • I think you should use the following RbAmWartung.Visibility = System.Windows.Visibility.Hidden; Commented Jul 3, 2023 at 9:09

1 Answer 1

1

You should Try the following:

if (ArbeitsplatzId == 400)
{
    RbAmWartung.Visibility = Visibility.Hidden;
}

The Visibilty property is used here. Learn more about it here.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.