title: UWP how to know if a button is in Commandbar.SecondaryCommand
body: <p>How do I know if my <code>AppBarButton</code> is collapsed to the <code>Commandbar.SecondaryCommand</code>? As you can see from the image, when the window size is smaller, some of my buttons are added to the Flyout of More. And they are not displayed properly because I give them <code>CornerRadius</code>. How can I set the <code>CornerRadius</code> to zero when the buttons are added to the <code>SecondaryCommand</code>?</p>
  
  <p><a href="https://i.stack.imgur.com/tDS2Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tDS2Y.png" alt="Normal"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ZydKH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZydKH.png" alt="Collapsed"></a></p>
  
  <p>A better solution for me would be implementing this effect on my own, because the provided <code>More</code> button doesn't have its label and I want to customize the SecondaryCommand Flyout. But I don't know how.</p>