Validation By IDataErrorInfo in Wpf using MVVM
<Window x:Class="WpfPrismTutorial.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:WpfPrismTutorial" mc:Ignorable="d" prism:ViewModelLocator.AutoWireViewModel="True" xmlns:prism="http://prismlibrary.com/" xmlns:valid="clr-namespace:WpfPrismTutorial.Validations" Title="MainWindow" Height="450" Width="800"> <Window.Resources> <ControlTemplate x:Key=" errorTemplate "> <StackPanel Orientation="Horizontal"> <AdornedElementPlaceholder x:Name