Make sure the purpose and state of a button are clear to the user. Unless your UI benefits from a button, it might be a better choice to use an AppBarToggleButton, CheckBox, RadioButton, or ToggleSwitch. Use a ToggleButton control when you want the user to be able to immediately switch between two mutually exclusive states, and a button is the best fit for your UI needs. Use a SplitButton control when you want the user to be able to initiate an immediate action or choose from additional options independently. The default chevron provides a visual indication that the button includes a flyout. Use a DropDownButton control when the button has a flyout that contains more options. For example, use a RepeatButton control to increment or decrement a value in a counter. Use a RepeatButton control when the user might want to trigger an action repeatedly. For other types of backwards navigation or navigation to an upper level, use a back button. For more info about hyperlinks, see Hyperlinks.įor wizard navigation, use buttons labeled Back and Next. Use a Button control to let the user initiate an immediate action, such as submitting a form.ĭon't use a Button control when the action is to navigate to another page instead, use a HyperlinkButton control. One side toggles on/off, and the other side opens a menu. One side initiates an action, and the other side opens a menu.Ī toggle button with two sides. For more info about hyperlinks, see Hyperlinks.Ī button with a chevron to open an attached flyout.Ī button with two sides. Can be used with a Click event or Command binding.Ī button that raises a Click event continuously while pressed.Ī button that's styled like a hyperlink and used for navigation. ControlĪ button that initiates an immediate action. The Extensible Application Markup Language (XAML) framework provides a standard button control as well as several specialized button controls.
Some buttons are specialized for particular tasks, such as navigation, repeated actions, or presenting menus. A button gives the user a way to trigger an immediate action.