mirror of https://github.com/AMT-Cheif/Stylet.git
Fix 'Eliminate ViewManager'
This commit is contained in:
parent
3b01fac260
commit
5c511603b6
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue