
Hi
Do the following steps to create a windows application using WPF.
Step 1: Select a new project from the file menu.
Step 2: Select Windows under the Templates in the new project window.
Step 3: Select WPF application.
Step 4 : Give a name for your project and click on OK.
Steps to create a simple application :
Step 1: Drag a button control on the window.
<Grid>
<Button Content="Button" HorizontalAlignment="Left" Margin="333,150,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_1"/>
</Grid>
Step 2: On button click event write the following code.
MessageBox.Show("Welcome to WPF");
step 3: Now run the application.
You will get the output.
Thanks & Regards,
Santhi .V
Chaithragm, if this helps please login to Mark As Answer. | Alert Moderator