Adding a View in WPF Prism Application

Add a new WPF user control to your module by right clicking the Views folder in Solution Explorer, point to Add, and then click New Item. In the Add New Item dialog box, select the User Control (WPF) template, set the name of user control(for example simpleprismapplicationview.xaml), and then click Add. Add a text block to the view. and set the text to "Hellow Friends" and Save the file.

XAML Code

<UserControl x:Class="simpleprismapplicationmodule.View.simpleprismapplicationview"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlnsx="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<
Grid>
<
TextBlock Text="Hellow Friends" Foreground="Green" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Calibri" FontSize="24" FontWeight="Bold"></TextBlock>
</
Grid>
</
UserControl
>