I am getting XAML exception in below code:
<Window x:Class="TemplatingOverview.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:myTemplateSelector="clr-namespace:TemplatingOverview" Title="MainWindow" Height="350" Width="525"><Window.Resources><myTemplateSelector:MyTemplateSelector x:Key="dataTemplateSelectorDictionary" StandardTemplate="{StaticResource StandardTemplate}" BelowAverageTemplate="{StaticResource BelowAverageTemplate}"/> </Window.Resources><Grid><StackPanel><ListView Name="listView" Margin="10" ItemsSource="{Binding EmployeeDetails}" HorizontalContentAlignment="Stretch"><ListView.View><GridView><GridViewColumn DisplayMemberBinding="{Binding Path=FirstName}" CellTemplateSelector="{StaticResource dataTemplateSelectorDictionary}" Header="First Name" Width="100"></GridViewColumn><GridViewColumn DisplayMemberBinding="{Binding Path=Age}" Header="Age" Width="80"/></GridView></ListView.View></ListView></StackPanel></Grid></Window>
Regards, http://www.shwetalodha.blogspot.in/