You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really a (wpfui-) bug but setting ExtendsContentIntoTitleBar to true and setting SizeToContent to WidthAndHeight gives the strange effect of the content being misaligned in the window, leaving a black area right and bottom, as described here
Since this rates to be common using FluentWindow, maybe a fix can be included there.
Meanwhile, a fix that seems to work but gives som flicker:
In the windows ContentRendered call
private void corewnd_ContentRendered(object sender, System.EventArgs e)
{
var firstrender = true;
if (firstrender)
{
InvalidateVisual();
firstrender = false;
}
}
To Reproduce
Set FluentWindow ExtendsContentIntoTitleBar=true and WidthAndHeight=SizeToContent and add content.
Expected behavior
Normal content display
Screenshots
No response
OS version
Win 11 Pro
.NET version
8
WPF-UI NuGet version
4.0.3
Additional context
No response
The text was updated successfully, but these errors were encountered:
// We don't do anything that uses the Window styles below so we might as
// well close the using so that we update the new style to the hwnd.
// This change was made to solve a problem where SizeToContent.WidthAndHeight borderless
// windows where actually bigger than the content size. This was b/c of
// the fact that we didn't update the style of the hwnd before setting
// the RootVisual which inturn calls MeasureOverride on Window from
// where we calculating the non-client area size using the stale
// style bits from the hwnd.
Describe the bug
Not really a (wpfui-) bug but setting ExtendsContentIntoTitleBar to true and setting SizeToContent to WidthAndHeight gives the strange effect of the content being misaligned in the window, leaving a black area right and bottom, as described here
Since this rates to be common using FluentWindow, maybe a fix can be included there.
Meanwhile, a fix that seems to work but gives som flicker:
In the windows ContentRendered call
To Reproduce
Set FluentWindow ExtendsContentIntoTitleBar=true and WidthAndHeight=SizeToContent and add content.
Expected behavior
Normal content display
Screenshots
No response
OS version
Win 11 Pro
.NET version
8
WPF-UI NuGet version
4.0.3
Additional context
No response
The text was updated successfully, but these errors were encountered: