We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm creating a ChildWindow using the following code:
ChildWindow
ChildWindowManager.ShowChildWindowAsync(Application.Current.MainWindow, dialogView, ChildWindowManager.OverlayFillBehavior.FullWindow);
Here, dialogView is defined in the following way:
dialogView
<simpleChildWindow:ChildWindow x:Class="Test.ChildView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" ChildWindowWidth="{Binding Width, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" ChildWindowHeight="{Binding Height, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" OffsetX="0" OffsetY="0" ShowTitleBar="False"> ... </simpleChildWindow:ChildWindow>
As expected, the height and width of the ChildWindow are being set correctly to the same values as the main window. However, the OffsetX and OffsetY values are being overriden after initialization of the view, causing the ChildWindow to not fill the entire main window. I assume this is caused by the logic in the ProcessMove method of the ChildWindow.cs class (https://github.com/punker76/MahApps.Metro.SimpleChildWindow/blob/develop/src/MahApps.Metro.SimpleChildWindow/ChildWindow.cs#L1139)
OffsetX
OffsetY
ProcessMove
ChildWindow.cs
I am using version 2.2.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm creating a
ChildWindow
using the following code:Here,
dialogView
is defined in the following way:As expected, the height and width of the
ChildWindow
are being set correctly to the same values as the main window.However, the
OffsetX
andOffsetY
values are being overriden after initialization of the view, causing theChildWindow
to not fill the entire main window.I assume this is caused by the logic in the
ProcessMove
method of theChildWindow.cs
class (https://github.com/punker76/MahApps.Metro.SimpleChildWindow/blob/develop/src/MahApps.Metro.SimpleChildWindow/ChildWindow.cs#L1139)I am using version 2.2.1
The text was updated successfully, but these errors were encountered: