Hi
Here is my xaml:
<ig:XamDialogWindow Grid.RowSpan="2" x:Name="pnlPopupWindow" WindowState="Hidden" IsModal="True" StartupPosition="Center" Style="{DynamicResource XamDialogWindowStyle1}"> </ig:XamDialogWindow>
and .cs file:
ucWatchList _ucWatchList = new ucWatchList(); pnlWatchList.Content = _ucWatchList; pnlWatchList.Show();
1. My problem is that XamDialogWindow not automatic resize and not center after I clear and add new usercontrol in his content. How I can force XamDialogWindow to do this?
2. When userControl change his size for example if have a grid and I add new records I too want to force XamDialogWindow to resize and recenter on the main window or add a vertical scrol bar itself.
Best regards,
Saykor
Hello Dimitar,
Thank you for your post. I have been looking through it but I wasn’t able to reproduce your behavior, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can look into it investigate it further for you.
Looking forward for your reply.
Hi,
Here I attach you a demo project and a screen capture video to see my testing.
http://www.saykor.com/ScreenCapture_11-9-2011 8.32.55 PM.rar
You will see that when a scroll bar is show i cannot scroll to bottom of the records, I cannot see the initial data.
I have been looking through your sample and the video you have provided I modified your sample. So now it works as you expect. Basically I use Grid instead of StackPanel in your “third” UserControl in order to make a ScrollBar to appear when it is needed. As for the Positioning of the XamDialogWindows I created two more Windows and now every user control is shown in a separate one, because when the instance is one it keeps its coordinates no matter that the Content is changed.
Hope this helps you
Thank you for your help but why the window not have a option to reset his coordinates?
For example if I load more data in the content and want in a complete method to reset the coordinates and put the DialogWindow in the center of the screen how i can do this?
You want to tell me that I need to use a different window for every different content or message that I want to show on the screen. This is not a normal way for me how a DialogWindow need to work.
Sorry but for me this is not a full solution on my problem. I want to work with one DialogWindownot with 18.
Hello,
Could you please send me an isolated sample project, where the issue is reproduced, so I can investigate this further for you.
Also when i am using "IsResizable" peroprty is "True", the problem get resolved. But still the dialog not maximize when window is miximize, i just want it to perform like, when window is maximize it should maximize when window is restore it should restore. and content within dialog shd fit, in its size.
Thanks for the reply.
I am facing one issue using XamDialogWindow, My Dialogwindow is written in usercontrol and open after clicking the button.
When the window is in its maximum size , dialog window opens fine.
But when the window is "restored" or not in maximum size , the dialog window overlap it or invisible, i really dnt understand its behavior, it should resize as per the window size.
Please suggest on this.
Only the SL XamDialogWindow has RestrictInContainer Property, while the WPF one desn't. They are separate controls despite they have the same names.
i can not see RestrictInContainer property in my xamdialog window, i am using mvvm in wpf ...please suggest.The dialog window is not re sizing when window is minimized