深入浅出 WPF - huyx/1 GitHub Wiki

深入浅出 WPF

TIPS

  • 数据驱动
  • Blend Expression
  • IL 反编译器
  • xmlns: XML Namespace
  • 类型转换: StackPanel panel = this.Content as StackPanel;

x

  • x:Class
    • x:ClassModifier -- internal|public
  • x:Name
    • x:FieldModifier -- internal|public
  • x:Key
    • x:Shared
  • x:Type -- TargetType="{x:Type Button}"
  • x:Null -- Style="{x:Null}"
  • x:Array
  • x:Static -- Title="{x:Static local:...}"
  • x:Code
  • x:XData

控件

  • 布局控件: Panel <= Grid, StackPanel, DockPanel
  • 内容控件: ContentControl <= Window, Button
  • 带标题内容控件: HeaderedContentControl <= GroupBox, TableItem
  • 条目控件: ItemsControl <= ListBox, ComboBox
  • 带标题条目控件: HeaderedItemsControl <= TreeViewItem, MenuItem
  • 特殊内容控件: TextBox, TextBlock, Image

其他

  • Decorator

  • Adorner

  • FlowText

  • Shape

    Window.Resources sys:String x:Key Style Setter Property Value StackPanel TextBox Text={StaticResource ResourceKey=} Orientation HorizationAlighment VerticalAlignment ListBox ItemsSoure x:Array sys:String

    FindResource ArrayList VisualTreeHelper GetParent [ConstructorArgument("type")]

    class Student : INotifyPropertyChanged