开发者

WPF Viewbox only shrink if I shrink the window horizontally

开发者 https://www.devze.com 2022-12-17 14:34 出处:网络
I have a grid in 开发者_C百科a Viewbox. If shrink the width of my window the grid getting smaller.. but if I shrink the height, nothing happened.Sounds Like the parent container is the problem! I have

I have a grid in 开发者_C百科a Viewbox. If shrink the width of my window the grid getting smaller.. but if I shrink the height, nothing happened.


Sounds Like the parent container is the problem! I have solved this changing the parent container to Grid (from the default StackPanel in for instance ItemsControl.ItemsPanelTemplate).

Lets see the complete xaml!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号