Exemplo n.º 1
0
 /// <summary>
 /// Handles a resize notification from <see cref="ITopLevelImpl.Resized"/>.
 /// </summary>
 /// <param name="clientSize">The new client size.</param>
 protected virtual void HandleResized(Size clientSize)
 {
     ClientSize = clientSize;
     Width      = clientSize.Width;
     Height     = clientSize.Height;
     LayoutManager.Instance.ExecuteLayoutPass();
     PlatformImpl.Invalidate(new Rect(clientSize));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handles a resize notification from <see cref="ITopLevelImpl.Resized"/>.
 /// </summary>
 /// <param name="clientSize">The new client size.</param>
 protected override void HandleResized(Size clientSize)
 {
     if (!AutoSizing)
     {
         Width  = clientSize.Width;
         Height = clientSize.Height;
     }
     ClientSize = clientSize;
     LayoutManager.Instance.ExecuteLayoutPass();
     PlatformImpl.Invalidate(new Rect(clientSize));
 }
Exemplo n.º 3
0
        /// <summary>
        /// Handles a resize notification from <see cref="ITopLevelImpl.Resized"/>.
        /// </summary>
        /// <param name="clientSize">The new client size.</param>
        protected virtual void HandleResized(Size clientSize)
        {
            if (!AutoSizing)
            {
                Width  = clientSize.Width;
                Height = clientSize.Height;
            }

            ClientSize = clientSize;
            _renderer.Resize((int)clientSize.Width, (int)clientSize.Height);
            LayoutManager.ExecuteLayoutPass();
            PlatformImpl.Invalidate(new Rect(clientSize));
        }
Exemplo n.º 4
0
 /// <inheritdoc/>
 void IRenderRoot.Invalidate(Rect rect)
 {
     PlatformImpl?.Invalidate(rect);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Handles a render request from <see cref="RenderManager.RenderNeeded"/>.
 /// </summary>
 private void HandleRenderNeeded()
 {
     _dispatcher.InvokeAsync(
         () => PlatformImpl.Invalidate(new Rect(ClientSize)),
         DispatcherPriority.Render);
 }