一開始整 layout, 就連 Anchor 點 set 都唔知, 記低佢先.
WPF 既玩法, 同 Windows Form 真係好唔同, 個 layout 好多選擇.
比如用 Windows Form, 要 set 跟哂成個 windows 變大縮細, 只要 Control 既 Properties 入面 Layout 既 Anchor 四邊 click 哂就得.
WPF 都有番同樣既野, 不過有少少唔同, 可能多 D 選擇, 但就好似多左幾步.
最要要係 set 左 Width 同 Height 都要 Auto (click 後面個好似 X 既 icon 就得)
之後 HorizontalAligment 同 VerticalAlignment 都要 Stretch, 就要自動變大.
呢度要主意, set 左 Stretch 而上面唔 set auto, 佢會當成 center.
最下面既 Margin 就係 auto 得黎, 同四邊既距離, 同 WF 一樣, 不過上面個圖遮住左.


No comments:
Post a Comment