Fix 'Eliminate ViewManager'

This commit is contained in:
Antony Male 2015-06-12 19:47:28 +01:00
parent 3b01fac260
commit 5c511603b6
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ namespace Stylet.Xaml
public static readonly DependencyProperty ModelProperty =
DependencyProperty.RegisterAttached("Model", typeof(object), typeof(View), new PropertyMetadata(defaultModelValue, (d, e) =>
{
var viewManager = ((FrameworkElement)d).Resources[ViewManagerResourceKey] as IViewManager;
var viewManager = ((FrameworkElement)d).TryFindResource(ViewManagerResourceKey) as IViewManager;
if (viewManager == null)
{