[C#] 22일차 - 160. WPF 간단한 계산기
C#/C#200제2021. 3. 5. 19:17[C#] 22일차 - 160. WPF 간단한 계산기

0 7 8 9 + 4 5 6 - 1 2 3 x . 0 = / using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using Syste..

[C#] 21일차 - 159. WPF DispatcherTimer와 깜박이는 프로그램
C#/C#200제2021. 3. 1. 16:23[C#] 21일차 - 159. WPF DispatcherTimer와 깜박이는 프로그램

WPF는 타이머 기능을 DispatcherTimer를 사용해 구현한다. Strat Blinking! Stop Blinking! using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using S..

[C#] 21일차 - 157. WPF의 레이아웃
C#/C#200제2021. 3. 1. 16:08[C#] 21일차 - 157. WPF의 레이아웃

Grid의 역할은 Label컨트롤을 포함하고 있는 레이아웃을 제공하는 컨트롤입니다. 이름 기능 StackPanel 자식들을 수직이나 수평으로 쌓아서 배치함 WrapPanel StackPanel과 유사하나 자식들이 줄바꿈을 하여 배치됨 DockPanel 자식들의 위치를 부모의 영역에 도킹해 배치함 Grid 가로, 세로 그리드를 나누고 그 안에 자식들을 배치함 UniformGrid Grid와 비슷하나 포함되는 자식들의 높이와 너비가 똑같이 배치됨 Canvas 자식들의 위치를 직접 지정함 키(cm) 체중(kg) BMI 계산 결과는: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T..

[C#] 21일차 - 156. WPF로 Hello World 프로그램 만들기
C#/C#200제2021. 3. 1. 14:49[C#] 21일차 - 156. WPF로 Hello World 프로그램 만들기

WPF(Windows Presentation Foundation) 장점 : 디자인과 프로그램 로직이 분리되어 있다는 점. 디자인은 XAML(eXrensible Application Markup Language)로 로직은 C#을 사용한다. 강력한 데이터바인딩을 제공한다는점 컨트롤을 새로 만들 수 있다는점.(사용자가 버튼안에 이밎와 텍스트가 있는 새로운 버튼 컨트롤을 만들어서 아용할 수 있습니다.) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using ..

C#/C#200제2021. 2. 25. 23:56[C#] 21일차 - 155. GDH+와 ToolStrip, StatusStrip을 사용한 그래픽 프로그램

GDI는 Graphcis Device Interface의 약자로 윈도우 시스템에서 디바이스에 독립적인 그래픽 프로그램을 할 수 있도록 해준다.

image