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?