1.System.Windows.Readability
解析:指定的可读性值LocalizabilityAttribute为二进制XAML(BAML)类或类成员。
2.System.Windows.LocalizabilityAttribute.Readability
解析:获取或设置本地化属性的目标值的可读性设置。
3.System.Windows.LocalizabilityAttribute.LocalizabilityAttribute(LocalizationCategory category)
解析:初始化的新实例LocalizabilityAttribute与指定的本地化类别的类。
4.Page和UserControl区别
解析:
[1]Page继承自UserControl,它是一个特殊的UserControl
[2]Page封装了对Frame的导航,这也是Page的最大特点和职责,而UserControl没有这个职责
[3]Page的宿主只能是浏览器,导航窗口和Frame
[4]UserControl更多的体现在可重用的控件集合上
5.WPF控件库MaterialDesignInXamlToolkit
解析:
[1]安装控件库
Install-Package MaterialDesignThemes
[2]配置App.xaml文件
<Application . . .
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
[3]配置MainWindow.xaml文件
<Window . . .
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}">
<Grid>
<StackPanel>
<materialDesign:Card Padding="32" Margin="16">
<TextBlock Style="{DynamicResource MaterialDesignHeadline6TextBlock}">My First Material Design App</TextBlock>
</materialDesign:Card>
</StackPanel>
</Grid>
</Window>
6.System.Windows.Documents.TextElement
解析:用作抽象Block和Inline类的基类的抽象类。
7.System.Windows.Media.TextOptions
解析:定义一组影响的元素中显示文本的方式的附加属性。
8.System.ComponentModel.CancelEventArgs
解析:为可取消的事件提供数据。
9.void GalaSoft.MvvmLight.ViewModelBase.Cleanup()
解析:Unregisters this instance from the Messenger class.
10.System.IO.Ports.SerialPort
解析:表示串行端口资源。
11.string[] System.IO.Ports.SerialPort.GetPortNames()
解析:获取当前计算机的串行端口名的数组。
12..cctor静态构造函数
解析:类型初始化器,是一个静态方法,无参数无返回值,不能直接调用,最多只有一个。
13.System.Windows.UIElement.IsEnabled
解析:获取或设置一个值,该值指示是否用户界面(UI)中启用此元素。这是依赖项属性。
14.System.Windows.Controls.ItemsControl.ItemsSource
解析:获取或设置用于生成ItemsControl的内容的集合。
15.System.Windows.Controls.Primitives.Selector.SelectedItem
解析:获取或设置当前所选内容中的第一项或如果所选内容为空则返回null。
16.System.Windows.Data.Binding.Mode
解析:获取或设置一个值,该值指示绑定的数据流方向。
17.System.Windows.Controls.ItemsControl.ItemTemplate
解析:获取或设置用来显示每个项的DataTemplate。
18.System.Windows.Controls.Primitives.Selector.SelectedValuePath
解析:获取或设置用于获取路径SelectedValue从SelectedItem。
19.System.Windows.Data.Binding.RelativeSource
解析:通过指定绑定源相对于绑定目标位置的位置,获取或设置此绑定源。
20.System.Windows.Data.RelativeSourceMode.FindAncestor
解析:引用数据绑定元素的父链中的上级。这可用于绑定到特定类型的上级或其子类。若要指定AncestorType和/或AncestorLevel,这就是应使用的模式。
21.System.Windows.Data.RelativeSource.AncestorType
解析:获取或设置要查找的上级节点的类型。
22.System.Windows.Markup.TypeExtension
解析:实现根据字符串输入返回Type的标记扩展。
23.System.Windows.Controls.ComboBox
解析:表示带有下拉列表的选择控件,通过单击控件上的箭头可显示或隐藏下拉列表。
24.System.Windows.Controls.Viewbox
解析:定义一个内容修饰器,以便拉伸或缩放单一子项使其填满可用的控件。
25.System.Windows.Data.Binding.ElementName
解析:获取或设置要用作绑定源对象的元素的名称。
参考文献:
[1]MaterialDesignInXamlToolkit:https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/wiki/Super-Quick-Start
[2]Ildasm.exe:https://docs.microsoft.com/zh-cn/dotnet/framework/tools/ildasm-exe-il-disassembler