Controlling Rendering
WPF provides three mechanisms for customizing how the source value is received and displayed, so you don’t need to give up the benefits of data binding to get the desired results in more customized scenarios. These mechanisms are string formatting, data templates, and value converters.
- String Formatting. Many controls have a XXXStringFormat property
- StringFormat
- ContentStringFormat
- ItemStringFormat
- HeaderStringFormat
- ColumnHeaderStringFormat
- Data Templates
- ContentTemplate
- ItemTemplate
- HeaderTemplate
- SelectedContentTemplate
- DetailsTemplate
- RowDetailsTemplate
- RowHeaderTemplate
- ColumnHeaderTemplate
- CellTemplate
- CellEditingTemplate
- HierarchicalDataTemplate
- Value Converters morph a source value into a completely different target value
- Bridging Incompatible Data Types
- Customizing Data Display
댓글
댓글 쓰기