WPF 2 XAML uxprolive com step 79hotmail com

  • Slides: 15
Download presentation
WPF 스터디 2장 XAML 신비를 벗다 발표자 : 최우진 uxpro@live. com step 79@hotmail. com

WPF 스터디 2장 XAML 신비를 벗다 발표자 : 최우진 uxpro@live. com step 79@hotmail. com

엘리먼트와 어트리뷰트 XAML: <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation" Content="OK" Click="button_Click"/> Content="OK"/> C#: System. Windows.

엘리먼트와 어트리뷰트 XAML: <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation" Content="OK" Click="button_Click"/> Content="OK"/> C#: System. Windows. Controls. Button b b= = new System. Windows. Controls. Button(); b. Click += new System. Windows. Routed. Event. Handler(button_Click); b. Content = "OK";

네임스페이스 � xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation" � xmlns: x="http: //schemas. microsoft. com/winfx/2006/xaml" � <Wpf.

네임스페이스 � xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation" � xmlns: x="http: //schemas. microsoft. com/winfx/2006/xaml" � <Wpf. Namespace: Button xmlns: Wpf. Namespace= � "http: //schemas. microsoft. com/winfx/2006/xaml/presentation" � Content="OK"/>

프로퍼티 엘리먼트 System. Windows. Controls. Button b = new System. Windows. Controls. Button(); <Button

프로퍼티 엘리먼트 System. Windows. Controls. Button b = new System. Windows. Controls. Button(); <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation"> System. Windows. Shapes. Rectangle r = new System. Windows. Shapes. Rectangle(); <Button. Content> r. Width = 40; Height="40" Width="40" Fill="Black"/> <Rectangle r. Height = 40; </Button. Content> r. Fill = System. Windows. Media. Brushes. Black; </Button> b. Content = r; // Make the square the content of the Button

프로퍼티 엘리먼트 <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation" Content="OK" Background="White"/> <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation">

프로퍼티 엘리먼트 <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation" Content="OK" Background="White"/> <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation"> <Button. Content> OK </Button. Content> <Button. Background> White </Button. Background> </Button>

타입컨버터 � System. Windows. Controls. Button b = new System. Windows. � b. Content

타입컨버터 � System. Windows. Controls. Button b = new System. Windows. � b. Content = "OK"; � b. Background = System. Windows. Media. Brushes. White; � � � <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation” Content="OK"> <Button. Background> <Solid. Color. Brush Color="White"/> </Button. Background> </Button> <Button xmlns="http: //schemas. microsoft. com/winfx/2006/xaml/presentation” Content="OK"> � <Button. Background> � <Solid. Color. Brush. Color> � <Color A="255" R="255" G="255" B="255"/> � </Solid. Color. Brush. Color> � </Solid. Color. Brush> � </Button. Background> � </Button>

Q&A

Q&A