Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Commented Issue: WinRT ViewModel-first does not work in 1.4.1 [287]

$
0
0
I am attempting the View Model-first approach according to the [Documentation WinRT tutorial](http://caliburnmicro.codeplex.com/wikipage?title=Working%20with%20WinRT&referringTitle=Documentation). However, in so doing I get a NullReferenceException.

As far as I have been able to debug, it seems to be the XamlTypeInfo.ContentProperty that is assigned "null" and thus causes the throw (_contentPropertyName is null when ContentProperty getter is accessed).

In 1.4(.0) I do not get this error.
I also do not get this error with the View-first approach in 1.4.1.

**UPDATE** Regarding View-first approach in 1.4.1: I have not explored this in greater detail, but it *does* seem like the view does not connect to the view-model.
Comments: Please ignore my previous comment. I just took a thorough look at the tutorial, and I noticed that the code actually contains comments that the view-models should be registered.

Viewing all articles
Browse latest Browse all 1760

Trending Articles



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