question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window size behavior

See original GitHub issue

When setting the width and height, the final size is larger than the one set when the TitleBar is displayed.

Avalonia behavior

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
        x:Class="Sandbox.MainWindow"
        Width="1024" Height="800">
</Window>

immagine

WPF behavior:

<Window x:Class="WpfApp3.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp3"
        mc:Ignorable="d"
        Title="MainWindow" Height="800" Width="1024">
    <Grid>
        
    </Grid>
</Window>

immagine

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kekekekscommented, Nov 4, 2020

I believe we are using client size here for consistency reasons. i. e. one would expect 100x100 Border to fit into 100x100 window. We should probably have separate properties for the full window size for platforms that support it.

0reactions
maxkatz6commented, Feb 1, 2023

We now have window.FrameSize property that includes window decoration bounds. Readonly. Width and Height are still defining client size, as per reasons above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TCP Window Size Scaling
Basically, the window size indicates the size of the receive buffer. Typically the TCP connection will start with a small window size and...
Read more >
Effects of View and Room Size on Window Size Preferences ...
The experiment showed that window preferences are affected by room size. Preferred window size is not a constant proportion of wall size. Rather,...
Read more >
Description of Windows TCP features - Windows Server
The TCP window size field controls the flow of data and is limited to 2 bytes, or a window size of 65,535 bytes....
Read more >
How to disable Windows 10 window resize behavior after ...
Open a new window. Note the size of the window at this point · Snap it to the side of the screen (Win...
Read more >
Window Size - Getting responsive behaviour in the canvas
With the Window Size function, you can connect the width and height of the browser to your displayed project. By binding these values...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found