// Override the "Close" event from Xsharp. We pass control to // the event sink to deal with it, and avoid calling the base. public override bool Close() { if (sink != null) { sink.ToolkitClose(); } return(false); }
public void ToolkitClose() { IToolkitEventSink co = this.mControlWeakRef.Target as IToolkitEventSink; if (null != co) { co.ToolkitClose(); } }