コード例 #1
0
 public RemotePlugin(IPlugin plugin)
 {
     _plugin = plugin;
     var control = plugin.CreateControl();
     var localContract = FrameworkElementAdapters.ViewToContractAdapter(control);
     Contract = new NativeHandleContractInsulator(localContract);
 }
コード例 #2
0
        public RemotePlugin(IPlugin plugin)
        {
            _plugin = plugin;
            var control       = plugin.CreateControl();
            var localContract = FrameworkElementAdapters.ViewToContractAdapter(control);

            Contract = new NativeHandleContractInsulator(localContract);
        }