Silverlight 2.0 정리 #2, UIElement

기술 | 2008/10/22 22:23 | 와이지
UserControl과 Panel
System.Window.UIElement
화면 상에 나타나는 class들의 기본 class로 기본적인 키보드, 마우스, 등의 input들을 처리하는 event들과 focus, blur event가 있다.

System.Window.FrameworkElement
UIElement에 layout 관련 속성들이 포함되어 있다. Loaded event는 RoutedEventHandler delegate type이지만 bubbling되지 않고 단독적으로 발생한다. XAML이 로딩되어 구성되는 특성 상 노드 중 자식이 없는 것부터 로딩이 되기 때문에 결국 순서로만 봤을 때 bubbling이 되는 것처럼 Loaded event가 발생한다.

System.Window.Controls.Control
많은 control들의 base class이고 ControlTemplate 형태의 Template 속성을 가지고 있어 기능은 유지한체로 화면 속성을 변경할 수 있다.

System.Window.Controls.UserControl
Control을 상속받은 UserControl은 다른 특이한 사항은 없고 Content라는 UIElement 형태의 속성을 가지고 있다. UserControl은 Control을 상속하는데 ControlTemplate은 적용할 수 없다고 한다. Content 속성을 통해서 화면을 나타내므로 ControlTemplate이 적용안되는 것은 당연한듯 한데 왜.. Control을 상속받고 ControlTemplate은 못 쓰도록 구조를 잡았는지는 아직 의문이다.

System.Window.Controls.Panel
Canvas, StackPanel, Grid와 같은 모든 Panel들의 base class로 UserControl의 Content에 보통 넣어준다. Children 속성을 가지고 있다.

System.Window.FrameworkElement을 상속 받은 다른 클래스들
(Class명이 대부분 설명해주고 있다)
System.Window.Controls.Border
System.Window.Controls.Image
System.Window.Controls.MediaElement: video, audio, or both.
System.Window.Controls.MultiScaleImage: Deep zoom.
System.Window.Controls.TextBlock


Routed events
자식 객체들이 처리하지 않은 event들을 부모 객체가 처리할 수 있도록 하는 silverlight의 built-in event handling system이다. 머.. 다른 플랫폼에서도 일반적인 형태이므로 딱히 특이할 만한 것은 없다.
태그 : silverlight
이전 1 ... 9 10 11 12 13 14 15 16 17 ... 75 다음