Home > OS >  Is it possible to keep MenuItem components next to each other when one of them should be hidden?
Is it possible to keep MenuItem components next to each other when one of them should be hidden?

Time:03-10

I want to give and take away the ability to press buttons to the user of my app.

Some buttons are visible, one is hidden.

And

now two buttons are hidden, two buttons are visible.

I want to keep them next to each other, but I do not find any way to do it.

CodePudding user response:

Hard to answer without any of your code. I guess you are using <Button Visibility="Hidden"/>? If so, try using <Button Visibility="Collapsed"/> instead.

If this doesn't work for you, please post the code.

  • Related