Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

In WPF/Prism/Unity/MVVM, '[Import]' is undefined

$
0
0

The following scriplet in a ViewModel is generating an undefined error.

        [Import]        public IEventAggregator EventAggregator { getset; }

The type or namespace name 'ImportAttribute' could not be found (are you missing a using directive or an assembly reference?)

What must be included either in terms of a reference or a using to allow this particular attribute to be properly handled?

 

Richard Lewis Haggard



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>