Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
XamWebDialogWindow - Maximized window state - Layout Cycle Detected Error.
posted

When I create a XamWebDialogWindow in code and set the RestrictInContainer to true and add the dialog to a StackPanel, I get "Layout Cycle Detected. Layout could not complete" error.  If I set WindowState to Normal, then the window appears within the container.  But when maximizing, Iam getting run time error.

XamWebDialogWindow myDialogWindow = new XamWebDialogWindow() { Width = 100, Height = 100, StartupPosition = StartupPosition.Center, WindowState = WindowState.Maximized };
myDialogWindow.RestrictInContainer = true;
testStackPanel.Children.Add(myDialogWindow);

Thanks, Sundar.