/// <summary> /// The on resize. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> protected virtual void OnResize(object sender, EventArgs e) { GetSize(out var width, out var height); NativeMethods.SetWindowSize(Host, width, height); }
/// <summary> /// The on exit. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> protected virtual void OnExit(object sender, EventArgs e) { NativeMethods.Quit(); }
/// <summary> /// The resize host. /// </summary> /// <param name="host"> /// The host. /// </param> /// <param name="width"> /// The width. /// </param> /// <param name="height"> /// The height. /// </param> public virtual void ResizeHost(IntPtr host, int width, int height) { NativeMethods.SetWindowSize(host, width, height); }