layouts controls

Download Layouts Controls

Post on 12-Jan-2015

1.084 views

Category:

Technology

3 download

Embed Size (px)

DESCRIPTION

wpf layouts controls

TRANSCRIPT

  • 1. L Qu Lc http://loclq.wordpress.com 28/09/2008

2. Ni Dung

  • Layouts
  • Controls
  • Routed events v commands
  • Windows
  • Data binding

3.

  • Khng ph thuc phn gii
  • Cc nguyn tc thit k
    • Elements (vd: controls) khng nn gn kch thc
    • Khng nn ch r v tr ca phn t bng ta
    • Lng cc layouts vi nhau
  • Tt c cc layouts nm trong: System.Windows.Controls.Panel
  • Nhng elements to ra layout:StackPanel, WrapPanel, DockPanel, Grid, UniformGrid, Canvas

Layouts 4. Layouts - StackPanel

  • Stack cc controls vo trong mt hng hoc mt ct

5. Layouts WrapPanel v DockPanel

  • WrapPanel t cc controls theo tng dng

6. Layouts WrapPanel v DockPanel

  • DockPanel t cc controls theo bin ca windows

7. Layouts Grid

  • Grid phn chia giao din thnh mt li cc thm controls vo

8. Layouts Canvas

  • t cc controls theo ta

9. Layouts - ng Dng 10.

  • Cc controls trong lp: System.Windows.Control
  • Phn loi controls
    • Buttons: Button, RepeatButton
    • Menus: ContextMenu, Menu, ToolBar
    • Selection: CheckBox, ComboBox, ListBox, ListView, TreeView, RadioButton, Slider
    • Navigation: Frame, HyperLink, Page, NavigationWindow, TabControl
    • Dialog boxes: OpenFileDialog, PrintDialog, SaveFileDialog
    • User information: AccessText, Label, Popup, ProgressBar, StatusBar, TextBlock, ToolTip
    • Documents: DocumentViewer, FlowDocumentPageViewer, FlowDocumentReader, FlowDocumentScrollViewer, StickyNoteControl
    • Input: TextBox, RichTextBox, PasswordBox
    • Media: Image, MediaElement, SoundPlayerAction

Controls 11. Controls Button 12. Controls - ContextMenu 13. Controls - Menu 14. Controls - Menu 15. Controls - ToolBar 16. Controls - CheckBox 17. Controls - ListBox 18. Controls - ListView 19. Controls - TreeView