Raven.Studio.StudioViewLocator.TryResolveViewFromPluginAssembly C# (CSharp) Method

TryResolveViewFromPluginAssembly() static private method

static private TryResolveViewFromPluginAssembly ( Type modelType, object context, UIElement &view ) : bool
modelType System.Type
context object
view System.Windows.UIElement
return bool
		static bool TryResolveViewFromPluginAssembly(Type modelType, object context, out UIElement view)
		{
			view = null;
			var viewType = GetViewType(modelType, context, modelType.Assembly);
			if (viewType != null)
			{
				view = ViewLocator.GetOrCreateViewType(viewType);
				return true;
			}
			return false;
		}