/// <summary> /// Handles a resize notification from <see cref="ITopLevelImpl.Resized"/>. /// </summary> /// <param name="clientSize">The new client size.</param> /// <param name="reason">The reason for the resize.</param> protected override void HandleResized(Size clientSize, PlatformResizeReason reason) { ClientSize = clientSize; FrameSize = PlatformImpl?.FrameSize; LayoutManager.ExecuteLayoutPass(); Renderer?.Resized(clientSize); }
public void Resize(Size clientSize, PlatformResizeReason reason) { _transport.Send(new RequestViewportResizeMessage { Width = clientSize.Width, Height = clientSize.Height }); ClientSize = clientSize; RenderIfNeeded(); }
public void Resize(Size clientSize, PlatformResizeReason reason) { // Emulate X11 behavior here if (IsPopup) { DoResize(clientSize); } else { Dispatcher.UIThread.Post(() => { DoResize(clientSize); }); } }
public void Resize(Size clientSize, PlatformResizeReason reason) { }
public void Resized(Size clientSize, PlatformResizeReason reason) { HandleResized(clientSize, reason); }