void OnControlChanged(INativeHandleContract contract)
		{
			Contract = contract;
			_frameworkElement = null;
			if (ControlChanged != null)
				ControlChanged(this, EventArgs.Empty);
		}
示例#2
0
 //private Timer aliveTimer;
 public PluginBase(INativeHandleContract nativeHandleContract, Object pluginInstance)
 {
     NativeHandleContract = nativeHandleContract;
     _pluginInstance = pluginInstance;
     IActionableFrameworkElement afe = _pluginInstance as IActionableFrameworkElement;
     if (afe != null)
     {
         afe.EventOccurred += OnEvent;
     }
     Interlocked.Increment(ref aliveHostCount);
     isAlive = true;
     lastPingTime = DateTime.Now;
 }
		public static FrameworkElement GetContent(INativeHandleContract contract)
		{
			return FrameworkElementAdapters.ContractToViewAdapter(contract);
		}
 public NativeHandleContractInsulator(INativeHandleContract source)
 {
     _source = source;
 }
 public NativeHandleContractSurrogate(INativeHandleContract contract)
 {
     this._handle = contract.GetHandle().ToInt64();
 }
 private NativeHandleContractMarshalByRefObject(INativeHandleContract upstream)
 {
     m_Upstream = upstream;
 }