WPF XAML: How to automatically scale down children of a component in XAML?

后端 未结 2 991
时光说笑
时光说笑 2020-12-22 12:44

Here\'s my problem:

xaml file 1: a templated list control


   

        
2条回答
  •  猫巷女王i
    2020-12-22 12:54

    Yeah Set VerticalStretch for your repeating element to Stretch, that should automatically make them behave as part of the list.

    As for the list, if it blows out of your container, put it in a Dockpanel.

    Sorry I couldn't understand what you're doing with the scale transform :) ... but it does sound like hammering a screw in.

    Maybe post a screenshot if that doesn't do it to help us understand.

提交回复
热议问题