Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }