{"id":34,"date":"2012-01-22T18:11:36","date_gmt":"2012-01-22T18:11:36","guid":{"rendered":"http:\/\/www.developercookies.net\/?p=34"},"modified":"2020-12-25T13:51:32","modified_gmt":"2020-12-25T13:51:32","slug":"m-v-vm-with-prism","status":"publish","type":"post","link":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/","title":{"rendered":"M-V-VM with PRISM"},"content":{"rendered":"<p>It seems that PRISM technology will be favorized by implementing Wpf, Silverlight or Windows Phone 7 applications. My personal opinion is that the current development state of PRISM needs too much manual development effort for realizing a project. Some automated goodies would be needed for PRISM hardly. But I think they would be realized and available in conceivable time.<\/p>\n<p>I prefer something between: Implementing M-V-VM with PRISM library. Especially the DelegateCommand of PRISM is a goodie which simplifies Commanding and improves the understanding MVVM and reading of written code lines remarquable.<\/p>\n<p>In the following lines I have coded an MVVM with PRISM example. It is a simple master detail visualization.<!--more--><\/p>\n<p><strong>Model (CPerson.cs):<\/strong><\/p>\n<pre class=\"brush:csharp\">using System.ComponentModel;\r\n\r\nnamespace prism.Model\r\n{\r\n    public class CPerson : INotifyPropertyChanged\r\n    {\r\n        #region Fields\r\n\r\n        private string _lastName;\r\n        private string _email;\r\n        private string _firstName;\r\n        private string _city;\r\n\r\n        #endregion\r\n\r\n        #region Properties\r\n\r\n        public string LastName\r\n        {\r\n            get { return _lastName; }\r\n            set\r\n            {\r\n                if (_lastName != value)\r\n                {\r\n                    _lastName = value;\r\n                    NotifyPropertyChanged(\"LastName\");\r\n                }\r\n            }\r\n        }\r\n\r\n        public string Email\r\n        {\r\n            get { return _email; }\r\n            set\r\n            {\r\n                if (_email != value)\r\n                {\r\n                    _email = value;\r\n                    NotifyPropertyChanged(\"Email\");\r\n                }\r\n            }\r\n        }\r\n\r\n        public string FirstName\r\n        {\r\n            get { return _firstName; }\r\n            set\r\n            {\r\n                if (_firstName != value)\r\n                {\r\n                    _firstName = value;\r\n                    NotifyPropertyChanged(\"FirstName\");\r\n                }\r\n            }\r\n        }\r\n\r\n        public string City\r\n        {\r\n            get { return _city; }\r\n            set\r\n            {\r\n                if (_city != value)\r\n                {\r\n                    _city = value;\r\n                    NotifyPropertyChanged(\"City\");\r\n                }\r\n            }\r\n        }\r\n\r\n        #endregion\r\n\r\n        #region Constructor\/Destructors\r\n\r\n        public CPerson()\r\n        {\r\n        }\r\n\r\n        public CPerson(CPerson person)\r\n        {\r\n            if (person != null)\r\n            {\r\n                FirstName = person.FirstName;\r\n                City = person.City;\r\n                Email = person.Email;\r\n                LastName = person.LastName;\r\n            }\r\n        }\r\n\r\n        #endregion\r\n\r\n        #region Methods\r\n\r\n        public void Copy(CPerson person)\r\n        {\r\n            FirstName = person.FirstName;\r\n            City = person.City;\r\n            Email = person.Email;\r\n            LastName = person.LastName;\r\n        }\r\n\r\n        private void NotifyPropertyChanged(string propertyName)\r\n        {\r\n            if (PropertyChanged != null)\r\n            {\r\n                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));\r\n            }\r\n        }\r\n\r\n        #endregion\r\n\r\n        #region INotifyPropertyChanged Members\r\n\r\n        public event PropertyChangedEventHandler PropertyChanged;\r\n\r\n        #endregion\r\n    }\r\n}<\/pre>\n<p><strong>ViewModel (MainViewModel.cs):<\/strong><\/p>\n<pre class=\"brush:csharp\">using System.ComponentModel;\r\n\r\nnamespace prism.Model\r\n{\r\n    public class CPerson : INotifyPropertyChanged\r\n    {\r\n        #region Fields\r\n\r\n        private string _lastName;\r\n        private string _email;\r\n        private string _firstName;\r\n        private string _city;\r\n\r\n        #endregion\r\n\r\n        #region Properties\r\n\r\n        public string LastName\r\n        {\r\n            get { return _lastName; }\r\n            set\r\n            {\r\n                if (_lastName != value)\r\n                {\r\n                    _lastName = value;\r\n                    NotifyPropertyChanged(\"LastName\");\r\n                }\r\n            }\r\n        }\r\n\r\n        public string Email\r\n        {\r\n            get { return _email; }\r\n            set\r\n            {\r\n                if (_email != value)\r\n                {\r\n                    _email = value;\r\n                    NotifyPropertyChanged(\"Email\");\r\n                }\r\n            }\r\n        }\r\n\r\n        public string FirstName\r\n        {\r\n            get { return _firstName; }\r\n            set\r\n            {\r\n                if (_firstName != value)\r\n                {\r\n                    _firstName = value;\r\n                    NotifyPropertyChanged(\"FirstName\");\r\n                }\r\n            }\r\n        }\r\n\r\n        public string City\r\n        {\r\n            get { return _city; }\r\n            set\r\n            {\r\n                if (_city != value)\r\n                {\r\n                    _city = value;\r\n                    NotifyPropertyChanged(\"City\");\r\n                }\r\n            }\r\n        }\r\n\r\n        #endregion\r\n\r\n        #region Constructor\/Destructors\r\n\r\n        public CPerson()\r\n        {\r\n        }\r\n\r\n        public CPerson(CPerson person)\r\n        {\r\n            if (person != null)\r\n            {\r\n                FirstName = person.FirstName;\r\n                City = person.City;\r\n                Email = person.Email;\r\n                LastName = person.LastName;\r\n            }\r\n        }\r\n\r\n        #endregion\r\n\r\n        #region Methods\r\n\r\n        public void Copy(CPerson person)\r\n        {\r\n            FirstName = person.FirstName;\r\n            City = person.City;\r\n            Email = person.Email;\r\n            LastName = person.LastName;\r\n        }\r\n\r\n        private void NotifyPropertyChanged(string propertyName)\r\n        {\r\n            if (PropertyChanged != null)\r\n            {\r\n                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));\r\n            }\r\n        }\r\n\r\n        #endregion\r\n\r\n        #region INotifyPropertyChanged Members\r\n\r\n        public event PropertyChangedEventHandler PropertyChanged;\r\n\r\n        #endregion\r\n    }\r\n}<\/pre>\n<p><strong>View (MainWindow.xaml):<\/strong><\/p>\n<pre class=\"brush:csharp\">&lt;Window x:Class=\"prism.View.PersonWindow\"\r\n        xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n        xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n        xmlns:vm=\"clr-namespace:prism.Viewmodel\"\r\n        Title=\"PersonWindow\" Height=\"561\" Width=\"594\"&gt;\r\n    &lt;Window.DataContext&gt;\r\n        &lt;vm:MainViewModel\/&gt;\r\n    &lt;\/Window.DataContext&gt;\r\n    &lt;Window.Resources&gt;\r\n        &lt;Style x:Key=\"LabelStyle\" TargetType=\"{x:Type TextBlock}\"&gt;\r\n            &lt;Setter Property=\"FontWeight\" Value=\"Bold\" \/&gt;\r\n\r\n        &lt;\/Style&gt;\r\n        &lt;Style x:Key=\"GridViewHeaderStyle\"\r\n               TargetType=\"{x:Type GridViewColumnHeader}\"&gt;\r\n            &lt;Setter Property=\"FontWeight\" Value=\"Bold\" \/&gt;\r\n            &lt;Setter Property=\"Foreground\" Value=\"Maroon\" \/&gt;\r\n            &lt;Setter Property=\"Background\" Value=\"LightSkyBlue\" \/&gt;\r\n        &lt;\/Style&gt;\r\n    &lt;\/Window.Resources&gt;\r\n    &lt;Grid&gt;\r\n        &lt;Grid.RowDefinitions&gt;\r\n            &lt;RowDefinition Height=\"*\" \/&gt;\r\n            &lt;RowDefinition Height=\"25\" \/&gt;\r\n            &lt;RowDefinition Height=\"Auto\" \/&gt;\r\n        &lt;\/Grid.RowDefinitions&gt;\r\n        &lt;ListView  Grid.Row=\"0\" BorderBrush=\"White\"\r\n                   ItemsSource=\"{Binding Path=PersonList}\"\r\n                   HorizontalAlignment=\"Stretch\"\r\n                   SelectedItem=\"{Binding Path=SelectedPerson}\"&gt;\r\n            &lt;ListView.View&gt;\r\n                &lt;GridView&gt;\r\n                    &lt;GridViewColumn Header=\"Last name\" Width=\"150\"\r\n                                    HeaderContainerStyle=\r\n                                    \"{StaticResource GridViewHeaderStyle}\"\r\n                                    DisplayMemberBinding=\"{Binding Path=LastName}\" \/&gt;\r\n                    &lt;GridViewColumn Header=\"First name\" Width=\"150\"\r\n                                    HeaderContainerStyle=\r\n                                    \"{StaticResource GridViewHeaderStyle}\"\r\n                                    DisplayMemberBinding=\"{Binding Path=FirstName}\" \/&gt;\r\n                    &lt;GridViewColumn Header=\"City\" Width=\"150\"\r\n                                    HeaderContainerStyle=\r\n                                    \"{StaticResource GridViewHeaderStyle}\"\r\n                                    DisplayMemberBinding=\"{Binding Path=City}\" \/&gt;\r\n                &lt;\/GridView&gt;\r\n            &lt;\/ListView.View&gt;\r\n        &lt;\/ListView &gt;\r\n        &lt;Grid Grid.Row=\"2\" HorizontalAlignment=\"Center\"&gt;\r\n            &lt;Grid.RowDefinitions&gt;\r\n                &lt;RowDefinition Height=\"25\" \/&gt;\r\n                &lt;RowDefinition Height=\"25\" \/&gt;\r\n                &lt;RowDefinition Height=\"25\" \/&gt;\r\n                &lt;RowDefinition Height=\"25\" \/&gt;\r\n                &lt;RowDefinition Height=\"25\" \/&gt;\r\n                &lt;RowDefinition Height=\"25\" \/&gt;\r\n            &lt;\/Grid.RowDefinitions&gt;\r\n            &lt;Grid.ColumnDefinitions&gt;\r\n                &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n            &lt;\/Grid.ColumnDefinitions&gt;\r\n            &lt;TextBlock Grid.Row=\"0\" Grid.Column=\"0\" Style=\"{StaticResource  LabelStyle}\"&gt;Last name&lt;\/TextBlock&gt;\r\n            &lt;TextBox HorizontalAlignment=\"Left\" Grid.Row=\"0\" Grid.Column=\"1\" Width=\"350\" Margin=\"10, 0, 5, 0\" Text=\"{Binding DetailViewPerson.LastName, Mode=TwoWay}\"&gt;&lt;\/TextBox&gt;\r\n            &lt;TextBlock Grid.Row=\"1\" Grid.Column=\"0\" Style=\"{StaticResource  LabelStyle}\"&gt;First name&lt;\/TextBlock&gt;\r\n            &lt;TextBox HorizontalAlignment=\"Left\" Grid.Row=\"1\" Grid.Column=\"1\" Width=\"350\" Margin=\"10, 0, 5, 0\" Text=\"{Binding DetailViewPerson.FirstName, Mode=TwoWay}\"&gt;&lt;\/TextBox&gt;\r\n            &lt;TextBlock Grid.Row=\"2\" Grid.Column=\"0\" Style=\"{StaticResource  LabelStyle}\"&gt;City&lt;\/TextBlock&gt;\r\n            &lt;TextBox HorizontalAlignment=\"Left\" Grid.Row=\"2\" Grid.Column=\"1\" Width=\"350\" Margin=\"10, 0, 5, 0\" Text=\"{Binding DetailViewPerson.City, Mode=TwoWay}\"&gt;&lt;\/TextBox&gt;\r\n            &lt;TextBlock Grid.Row=\"3\" Grid.Column=\"0\" Style=\"{StaticResource  LabelStyle}\"&gt;e-Mail&lt;\/TextBlock&gt;\r\n            &lt;TextBox HorizontalAlignment=\"Left\" Grid.Row=\"3\" Grid.Column=\"1\" Width=\"350\" Margin=\"10, 0, 5, 0\" Text=\"{Binding DetailViewPerson.Email, Mode=TwoWay}\"&gt;&lt;\/TextBox&gt;\r\n            &lt;Grid Grid.Row=\"5\" Grid.Column=\"1\" HorizontalAlignment=\"Center\"&gt;\r\n                &lt;Grid.ColumnDefinitions&gt;\r\n                    &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                    &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                    &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                    &lt;ColumnDefinition Width=\"Auto\"\/&gt;\r\n                &lt;\/Grid.ColumnDefinitions&gt;\r\n                &lt;Button Grid.Row=\"1\" Width=\"100\" Grid.Column=\"0\" Command=\"{Binding CommandPersonNew}\"&gt;New&lt;\/Button&gt;\r\n                &lt;Button Grid.Row=\"1\" Width=\"100\" Grid.Column=\"1\" Command=\"{Binding CommandPersonDiscard}\"&gt;Discard&lt;\/Button&gt;\r\n                &lt;Button Grid.Row=\"1\" Width=\"100\" Grid.Column=\"2\" Command=\"{Binding CommandPersonDelete}\"&gt;Delete&lt;\/Button&gt;\r\n                &lt;Button Grid.Row=\"1\" Width=\"100\" Grid.Column=\"3\" Command=\"{Binding CommandPersonSave}\"&gt;Save&lt;\/Button&gt;\r\n            &lt;\/Grid&gt;\r\n        &lt;\/Grid&gt;\r\n    &lt;\/Grid&gt;\r\n&lt;\/Window&gt;<\/pre>\n<p>And finally <a href=\"http:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/mvvmprismsample.zip\">here<\/a> you find the zipped project.<\/p>","protected":false},"excerpt":{"rendered":"<p>It seems that PRISM technology will be favorized by implementing Wpf, Silverlight or Windows Phone 7 applications. My personal opinion is that the current development state of PRISM needs too much manual development effort for realizing a project. Some automated goodies would be needed for PRISM hardly. But I think they would be realized and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":509,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ngg_post_thumbnail":0,"footnotes":""},"categories":[10,7],"tags":[18,19],"class_list":["post-34","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c","category-wpf","tag-mvvm","tag-prism"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>M-V-VM with PRISM - Developer Cookies Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"M-V-VM with PRISM - Developer Cookies Blog\" \/>\n<meta property=\"og:description\" content=\"It seems that PRISM technology will be favorized by implementing Wpf, Silverlight or Windows Phone 7 applications. My personal opinion is that the current development state of PRISM needs too much manual development effort for realizing a project. Some automated goodies would be needed for PRISM hardly. But I think they would be realized and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/\" \/>\n<meta property=\"og:site_name\" content=\"Developer Cookies Blog\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-22T18:11:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-25T13:51:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/optics-113359_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Peter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"headline\":\"M-V-VM with PRISM\",\"datePublished\":\"2012-01-22T18:11:36+00:00\",\"dateModified\":\"2020-12-25T13:51:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/\"},\"wordCount\":129,\"publisher\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"image\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/optics-113359_1920.jpg\",\"keywords\":[\"MVVM\",\"PRISM\"],\"articleSection\":[\"C#\",\"WPF\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/\",\"name\":\"M-V-VM with PRISM - Developer Cookies Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/optics-113359_1920.jpg\",\"datePublished\":\"2012-01-22T18:11:36+00:00\",\"dateModified\":\"2020-12-25T13:51:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/optics-113359_1920.jpg\",\"contentUrl\":\"https:\\\/\\\/www.developercookies.net\\\/wp-content\\\/uploads\\\/2012\\\/01\\\/optics-113359_1920.jpg\",\"width\":1920,\"height\":1440},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/de\\\/m-v-vm-with-prism\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.developercookies.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"M-V-VM with PRISM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#website\",\"url\":\"https:\\\/\\\/www.developercookies.net\\\/\",\"name\":\"Developer Cookies Blog\",\"description\":\"Recipes and tutorials for developers\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.developercookies.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.developercookies.net\\\/#\\\/schema\\\/person\\\/3ebc9e2aff87c249f1085b36ffd91613\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\",\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"M-V-VM with PRISM - Developer Cookies Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/","og_locale":"de_DE","og_type":"article","og_title":"M-V-VM with PRISM - Developer Cookies Blog","og_description":"It seems that PRISM technology will be favorized by implementing Wpf, Silverlight or Windows Phone 7 applications. My personal opinion is that the current development state of PRISM needs too much manual development effort for realizing a project. Some automated goodies would be needed for PRISM hardly. But I think they would be realized and [&hellip;]","og_url":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/","og_site_name":"Developer Cookies Blog","article_published_time":"2012-01-22T18:11:36+00:00","article_modified_time":"2020-12-25T13:51:32+00:00","og_image":[{"width":1920,"height":1440,"url":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/optics-113359_1920.jpg","type":"image\/jpeg"}],"author":"Peter","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Peter","Gesch\u00e4tzte Lesezeit":"5\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#article","isPartOf":{"@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/"},"author":{"name":"Peter","@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"headline":"M-V-VM with PRISM","datePublished":"2012-01-22T18:11:36+00:00","dateModified":"2020-12-25T13:51:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/"},"wordCount":129,"publisher":{"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"image":{"@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#primaryimage"},"thumbnailUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/optics-113359_1920.jpg","keywords":["MVVM","PRISM"],"articleSection":["C#","WPF"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/","url":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/","name":"M-V-VM with PRISM - Developer Cookies Blog","isPartOf":{"@id":"https:\/\/www.developercookies.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#primaryimage"},"image":{"@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#primaryimage"},"thumbnailUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/optics-113359_1920.jpg","datePublished":"2012-01-22T18:11:36+00:00","dateModified":"2020-12-25T13:51:32+00:00","breadcrumb":{"@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#primaryimage","url":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/optics-113359_1920.jpg","contentUrl":"https:\/\/www.developercookies.net\/wp-content\/uploads\/2012\/01\/optics-113359_1920.jpg","width":1920,"height":1440},{"@type":"BreadcrumbList","@id":"https:\/\/www.developercookies.net\/de\/m-v-vm-with-prism\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.developercookies.net\/"},{"@type":"ListItem","position":2,"name":"M-V-VM with PRISM"}]},{"@type":"WebSite","@id":"https:\/\/www.developercookies.net\/#website","url":"https:\/\/www.developercookies.net\/","name":"Developer Cookies Blog","description":"Recipes and tutorials for developers","publisher":{"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.developercookies.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/www.developercookies.net\/#\/schema\/person\/3ebc9e2aff87c249f1085b36ffd91613","name":"Peter","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g","caption":"Peter"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/8eec59bcecb6c1083084fcd3d11551d8c4451902fb594f87782fbda27fe8bd08?s=96&d=mm&r=g"}}]}},"_links":{"self":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":8,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/posts\/34\/revisions\/38"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/media\/509"}],"wp:attachment":[{"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.developercookies.net\/de\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}