Posts

Showing posts from April, 2020

How to Enable/Disable Button on Validation using DelegateCommand of Prism

Image
  MainWindow.xaml  <Window x:Class="Wpf.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:Wpf"              mc:Ignorable="d">      <Window.Resources>          <ControlTemplate  x:Key="TextBoxErrorStyle">              <StackPanel Orientation="Horizontal">                  <AdornedElementPlaceholder x:Name="ErrorHolder" >                      <Border BorderBrush="red" BorderThickness="1" />                  </AdornedElementPlaceholder>                  <TextBlock  Text="{Binding [0].ErrorCont