반응형
WPF에서 Button 등의 Control을 쉽게 회전시킬 수 있습니다.
아래의 예제는 간단하게 Button을 45도로 회전한 것입니다.
아래의 소스에서 와 같이 Button.LayoutTransform 태그의 자식 노드인 RotateTransform에 각도(Angle)을 입력하면 쉽게 버튼을 회전 시길 수 있습니다.
1 2 3 4 5 | <Button Content="Button" Margin="223,152,0,0" Name="button1" HorizontalAlignment="Left" Width="75" Height="23" VerticalAlignment="Top"> <Button.LayoutTransform> <RotateTransform Angle="45"/> </Button.LayoutTransform> </Button> | cs |
반응형
'프로그래밍 속 지혜 > WPF' 카테고리의 다른 글
WPF Calendar Component를 이용한 년 또는 월 선택 하기 (1) | 2017.11.14 |
---|---|
WPF ComboBox Item 추가하기 (2) | 2016.09.18 |
WPF - Context Menu 생성하기 (3) | 2016.05.12 |
WPF 프로젝트 만들기 (1) | 2016.05.04 |
WPF - Window의 타이틀바(Titlebar) 없애기 (1) | 2016.04.25 |
댓글