private byte[] ParseView(Type type, object model, Encoding encoding) { var view = GetView(model, type); var viewTemplate = ViewLocator.GetView(_siteRootPath, view); return(ViewParser.ParseView(view, viewTemplate, encoding)); }
public bool?ShowDialog(object dialogViewModel, string caption) { var contentView = ViewLocator.GetView(dialogViewModel); var dlg = new DialogWindow { Title = caption }; dlg.PART_ContentControl.Content = contentView; return(dlg.ShowDialog()); }