July 2017
Beginner
466 pages
9h 37m
English
Let's add a button control on the UI of our WPF application. To do this, open the MainPage.xaml file and inside the Grid panel, add the Button tag with its content and dimension as shown in the following highlighted code snippet and it will show you a preview in the designer view:
<Window x:Class="Demo.WPF.FirstApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Button Content="Click Here" Width="100" Height="26" />
</Grid>
</Window>

Now, let's add some color to the button. You ...
Read now
Unlock full access