Hi,
Based on my understanding, a good way to set dinamyc sizes for different ViewModels could be to create a Style with Width and Height properties binded to the properties defined inside the ViewModels. Therefore, properties that are being binded from the Style should share the same name across all your ViewModels in order for the binds to work properly.
In this case, you can apply a Style to the window through the RegionPopupBehaviors.ContainerWindowStyle property which could have a binding to properties in the ViewModels.
Regards,
Federico Martinez
http://blogs.southworks.net/fmartinez
Based on my understanding, a good way to set dinamyc sizes for different ViewModels could be to create a Style with Width and Height properties binded to the properties defined inside the ViewModels. Therefore, properties that are being binded from the Style should share the same name across all your ViewModels in order for the binds to work properly.
In this case, you can apply a Style to the window through the RegionPopupBehaviors.ContainerWindowStyle property which could have a binding to properties in the ViewModels.
Regards,
Federico Martinez
http://blogs.southworks.net/fmartinez