Applications = Code + Markup读书笔记(1)
1. 关于Application和Window的层次结构
Object
└─DispatcherObject (abstract)
├─Application
└─DependencyObject
└─Visual (abstract)
└─UIElement
└─FrameworkElement
└─Control
└─ContentControl
└─Window
2.如果没有显示的设置Window的宽或高,他们的值将始终是NaN
The Width and Height properties are initially undefined, and if your program never sets them, they remain undefined, which means they have values of NaN, the abbreviation immortalized by the IEEE (Institute of Electrical and Electronics Engineers, Inc.) floating-point standard for "not a number."
3.与设备无关单位(1/96inches),这一点需要与DPI进行区分
The units in which you specify all dimensions and locations in Windows Presentation Foundation are sometimes called device-independent pixels or logical pixels but it's probably best not to refer to pixels at all.