Hi,
We have WPF application which uses xamDialogWindow as a base class for MDI-like interface. For now all minimized dialog windows are located in upper left corner of the main container window and look like empty box 400 x 400 pixels, without header. I tried to explicitly set MinimizedHeight and MinimizedWidth in XAML and code behind - no result. I tried to create a panel in parent window XAML and specify it's name in MinimizedPanel - no result. I tried to explicitly create Panel and and set MinimizedPanel in code behind - in this case minimized panel just disappear.
Is it possible to create MDI-like minimized windows using xamDialogWindow ?
Thanks,
Ed
Hello Ed,
Thank you for your post. I have been looking into it and I can suggest you look in the Samples Browser under xamDialogWindow / Display / Defining a Minimized Panel section, where there is a sample which shows how to define minimized panel. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Stefan,
I looked in the sample and I see here MinimizedPanel is set on XAML level. In my case I have to do it in code behind. Also I see that minimized windows in the sample don't have any header or icon. Is it possible to set a data template for minimized panel ?
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
It works. Thank you very much! I just had to set MinimizedHeaderTemplate programmatically.
I have created a sample project for you with the functionality you want. Basically I set the MinimizedWidth of the XamDialogWindow to 200, so the header and icon could be displayed when the window is minimized. Please let me now if this helps you or you need further assistance on this matter.