11

Is there a way for me to have the Window of my WPF application resize dynamically with the content? I tried setting the width and height to auto, but no go.

4

2 に答える 2

1

グリッドのようなサイズ変更可能なコントロールを使用し、すべてのコントロールを行/列に配置します。また、Grid 内の各コントロールに対して、Horizo​​ntalAlignment をストレッチするように設定します。

于 2014-04-02T18:23:12.920 に答える