public IPluginViewSettings AddWpfView(Guid viewId, Panel hostControl) { IPluginViewSettings pluginViewSettings = new SamplePluginViewSettings(); if (hostControl != null) { ExpressionStuff expressionStuff = new ExpressionStuff(); expressionStuff.DataContext = this; hostControl.Children.Add(expressionStuff); } return(pluginViewSettings); }
public IPluginViewSettings AddWpfView(Guid viewId, Panel hostControl) { IPluginViewSettings pluginViewSettings = new SamplePluginViewSettings(); if (hostControl != null) { BodyStuff bodyStuff = new BodyStuff(); bodyStuff.DataContext = this; hostControl.Children.Add(bodyStuff); } return(pluginViewSettings); }