반응형 wpf로1 WPF 선그리기 예제 WPF ( Windows Presentation Foundation ) 에서 선그리는 예제입니다. Windows에 Canvas를 추가하고, Name은 "canvas"로 설정했습니다. Windows에 Loaded 이벤트를 등록하고, 해당 이벤트가 발생할 때 Canvas에 Line을 설정하여 그려지도록 했습니다. 아래 예제 소스와 실행결과를 남겨두니 도움이 되셨으면 좋겠습니다. [xaml] [xaml.cs] using System.Windows; using System.Windows.Media; using System.Windows.Shapes; namespace WpfApp1 { /// /// Interaction logic for MainWindow.xaml /// public partial class .. 2020. 10. 28. 이전 1 다음 반응형