Language: HTML | XAML

Adding buttons (XAML)

Applies to Windows and Windows Phone

Use a button control to let users commit a command, like submitting or resetting a form. The topics in this section describe how to create and use buttons.

Roadmap: How does this topic relate to others? See:

The Button control in the XAML UI framework provides a Click event to respond to user input from a touch, mouse, keyboard, stylus, or other input device. You can put different kinds of content in a button, such as text or an image, or you can restyle a button to give it a new look. The RepeatButton control is like the Button, except that the Click event occurs continuously while the user presses the RepeatButton.

A standard button and a styled button

The HyperlinkButton control looks like hyperlink text. It automatically opens a web page you specify in its NavigateUri property.

Hyperlink button

In this section

TopicDescription

Quickstart: Adding button controls

Button controls provide a way for users to commit a command or perform an action, like submitting or resetting a form. This quickstart walks you through the steps to add a button control to a Windows Runtime app using C++, C#, or Visual Basic.

How to add a button

This tutorial walks you through the steps to add a button control to a Windows Store app using C++, C#, or Visual Basic.

Button styles and templates

This topic describes the styles and templates for the Button control.

HyperlinkButton styles and templates

This topic describes the styles and templates for the HyperlinkButton control.

RepeatButton styles and templates

This topic describes the styles and templates for the RepeatButton control.

ToggleButton styles and templates

This topic describes the styles and templates for the ToggleButton control.

 

Related topics

Roadmap for Windows Runtime apps using C# or Visual Basic
Roadmap for Windows Runtime apps using C++

 

 

Show:
© 2014 Microsoft