Templates Structure
Like most WPF controls, RadDataForm allows you to template it in order to change the control from inside. Except for templating the whole control, you can template parts of it or even independent controls related to it. This topic will make you familiar with:
RadDataForm Template Structure
DataFormDataField Template Structure
CollectionNavigator Template Structure
For more information about templating and how to modify the default templates of the RadControls read the common topics on the matter.
RadDataForm
PART_RootElemen - hosts the elements of the template. It represents the border of the RadDataForm and is of type Border
PART_DataFormGrid - provides rows for the template elements. It represents the background of the RadDataForm and is of type Grid
Header - represents the outer border of the header and is of type Border
Border - represents the inner border of the header and is of type Border
PART_ContentPresenter - displays the content of the header and is of type ContentControl
CollectionNavigator - represents the navigation buttons as well as those used for updating the item.
[Border] - represents the outer border of the ScrollViewer and is of type Border
PART_ItemsScrollViewer - represents the control that handles the different types of presentor and is of type Border
[StackPanel]
PART_AutoGeneratedFieldsPresenter - displays the autogenerated fields.
PART_FieldsContentPresenter - displays the non-autogenerated fields.
FooterPanel_Background - represents the background of the footer panel and is of type Border
PART_FooterPanel - represents the footer panel and is of type StackPanel
PART_CommitButton - represents the CommitButton and is of type RadButton
PART_CancelButton - represents the CancelButton and is of type RadButton
Background_Disabled - represents the background of the RadDataForm in disabled state and is of type Border.
DataFormDataField Template
PART_RootElement - hosts the elements of the template. It represents the border of the DataFormDataField and is of type Border
PART_DataFormDataFieldGrid - provides columns and rows for the template elements. It represents the background of the DataFormDataField and is of type Grid
PART_Label - represents the label of the DataFormDataField and is of type TextBlock
PART_ContentPresener - displays the content and is of type ContentPresenter
DescriptionIcon - hosts the description icon and is of type Grid
[Ellipse]
[Ellipse]
[Path]
CollectionNavigator Template
PART_RooteElement - hosts the elements of the template. It represents the border and the background of the CollectionNavigator and is of type Border
PART_CollectionNavigatorGrid - provides columns for the elements. It represents the background of the navigator and is of type Grid.
[StackPanel] - hosts the navigation buttons and is of type StackPanel
MoveCurrentToFirst - represents the MoveCurrentToFirst button and is of type RadButton
[StackPanel] - holds the content for this button
[Rectangle]
[Path]
MoveCurrentToPrevious - represents the MoveCurrentToPrevious button and is of type RadButton
[Path]
MoveCurrentToNext - represents the MoveCurrentToNext button and is of type RadButton
[Path]
MoveCurrentToLast - represents the MoveCurrentToLast button and is of type RadButton
[StackPanel] - holds the content for this button
[Path]
[Rectangle]
[StackPanel] - holds the buttons that perform standard operations
AddNew - represents the AddNew button and is of type RadButton
[Path]
BeginEdit - represents the BeginEdit button and is of type RadButton
[Path]
Delete - represents the Delete button and is of type RadButton
[Path]