public static unsafe void ProcessLostFocus(ref WindowMessage msg, EventedWindowCore window) { fixed(WindowMessage *ptr = &msg) { var packet = new FocusPacket(ptr); window.OnLostFocus(ref packet); } }
protected internal virtual void OnLostFocus(ref FocusPacket packet) { unsafe { this.OnMessageDefault(ref ((WindowMessageWrapper *)packet.Message)->Value); } }