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
430
Setting height and width after added as child
posted

I reuse a xamDialogWindow for multiple modal dialogs. I start by adding the control as a child of my TabItem. I then programmatically change the visibility property using databinding to a viewmodel. Because I display different content within the XamDialogWindow, and it does not support SizeToContent, I am trying to programmatically change the height and width.

It seems though that the control ignores any attempt to set its height and width after the original layout.I have tried setting the Height and Width in the IsVisibleChanged event, but it has no effect, even if I invalidate the layout.

How can I change the height and width of a XamDialogWindow after it has first been displayed?

 

Parents
  • 28407
    posted

    HI,

     I was not able to reproduce your issue.

     I created an application where i dynamically added a XamDialogWindow to Tab and I was able to resize the Width and Height.

     Please review my sample and feel free to modify it so that it replicates your issue.
     Then repost it to this thread.

     Sincerely,
     Matt
    Developer Support Engineer

     

    WpfApplication85.rar
Reply Children
No Data