---
title: "How to create a button USING XAML?"  
description: "How to create a button USING XAML?"  
author: "Anonymous User"  
published: 2013-10-14  
updated: 2020-09-10  
canonical: https://www.mindstick.com/interview/1811/how-to-create-a-button-using-xaml  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# How to create a button USING XAML?

To define a button in WPF using XAML use the following syntax,

<Button Name="btnName">btnCaption</Button>

## Answers

### Answer by Anonymous User

To define a button in WPF using XAML use the following syntax,

<Button Name="btnName">btnCaption</Button>


---

Original Source: https://www.mindstick.com/interview/1811/how-to-create-a-button-using-xaml

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
