Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Adjustiing properties for popups e.g. MinWidth, MinHeight

$
0
0
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

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>