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,

The RegionPopupBehaviors defines a ContainerWindowStyle attached property, which you can use to set a Style to be used by the popup Window control. Therefore, you should be able to set the Width / Height properties of the Window using a Style.

An example of this can be seen in the Stock Trader RI (desktop version) in the Shell window, where a popup region is defined:
<Windowx:Class="StockTraderRI.Shell"...infBehaviors:RegionPopupBehaviors.CreatePopupRegionWithName="{x:Static inf:RegionNames.SecondaryRegion}"infBehaviors:RegionPopupBehaviors.ContainerWindowStyle="{StaticResource WindowRegionStyle}"...>
I hope this helps,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Viewing all articles
Browse latest Browse all 1878

Trending Articles



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