The property 'IsDataSource' was not found in type 'ViewModelLocator

Posted by dieter-preconsult-be on Stack Overflow See other posts from Stack Overflow or by dieter-preconsult-be
Published on 2009-11-30T20:27:09Z Indexed on 2010/04/23 16:03 UTC
Read the original article Hit count: 257

Filed under:
|

Hello

I have the following code:

<UserControl x:Class="TestApp.View.ViewAlarmLog"
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:Custom="http://schemas.microsoft.com/wpf/2008/toolkit"  
 xmlns:mvvm="clr-namespace:Test.ViewModel">
<UserControl.Resources>
    <ResourceDictionary  >
        <ResourceDictionary.MergedDictionaries>
        </ResourceDictionary.MergedDictionaries>
        <mvvm:ViewModelLocator x:Key="Locator" d:IsDataSource="True"/>
  </ResourceDictionary>
 </UserControl.Resources>

the problem is dat i always get an error: The property 'IsDataSource' was not found in type 'ViewModelLocator'. "

What could be the problem here ?

Redgards Dieter

© Stack Overflow or respective owner

Related posts about mvvm

Related posts about expression-blend