WPF 메모~ StackPanel~

3473 단어 WPF

개시하다


WPF에서 공부하는 중이기 때문에 자신의 위에 써야 한다.
잘못되고 부족한 점이 있으면 메시지를 남겨주세요.

StackPanel 제어


스테이터 요소가 세로(Vertical)인지 가로(Horizontal)인지를 설정합니다.
● StackPanel의 하위 요소 세로 정렬
하위 요소의 Horizontal Alignment 속성의 수평 방향을 지정할 수도 있습니다.
~省略~
<StackPanel Orientation="Vertical" >
   <Button Content="Button1" />
   <Button Content="Button2" />
   <Button Content="Button3" HorizontalAlignment="Left"/>
   <Button Content="Button4" HorizontalAlignment="Right"/>
</StackPanel>

● StackPanel의 하위 요소 가로
하위 요소의 Vertical Alignment 속성의 수직 방향을 지정할 수도 있습니다.
~省略~
<StackPanel Orientation="Horizontal" >
    <Button Content="Button1" />
    <Button Content="Button2" />
    <Button Content="Button3" VerticalAlignment="Top"/>
    <Button Content="Button4" VerticalAlignment="Bottom"/>
</StackPanel>


인용하다


일생의Blog@hatena

좋은 웹페이지 즐겨찾기