Window size behavior
See original GitHub issueWhen 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>
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>
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
We now have window.FrameSize property that includes window decoration bounds. Readonly. Width and Height are still defining client size, as per reasons above.