We have two TreeListViews that we display one above the other (with some other UI bits in the middle). We desire to have the widths of the columns in these two tree views match. We do use footers in the columns, and the footer widths would need to be taken into account. Something like SharedSizeDefinition as used on Grid ColumnDefinition and RowDefinition would be ideal, if possible. How can we do this, please?
example (not intended to build; cut down from the real application code):
example (not intended to build; cut down from the real application code):
<
telerik:RadTreeListView
ItemsSource
=
"{Binding Path=MyFirstList}"
>
<
telerik:RadTreeListView.ChildTableDefinitions
>
<
telerik:TreeListViewTableDefinition
ItemsSource
=
"{Binding ChildVMs}"
/>
</
telerik:RadTreeListView.ChildTableDefinitions
>
<
telerik:RadTreeListView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
UniqueName
=
"Name"
IsSortable
=
"True"
SortingState
=
"Ascending"
IsReadOnly
=
"True"
DataMemberBinding
=
"{Binding Name}"
/>
<
telerik:GridViewDataColumn
Header
=
"Value"
TextAlignment
=
"Right"
DataMemberBinding
=
"{Binding CurrentValue, Mode=TwoWay}"
>
<
telerik:GridViewDataColumn.Footer
>
<
TextBlock
FontSize
=
"12"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Right"
Text
=
"{Binding Path=SomeOtherNumber, Mode=OneWay}"
/>
</
telerik:GridViewDataColumn.Footer
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
Header
=
"Timeline"
Width
=
"*"
IsReadOnly
=
"True"
CellTemplateSelector
=
"{StaticResource TimelineTemplateSelector}"
CellStyle
=
"{StaticResource TimelineCellStyle}"
FooterCellStyle
=
"{StaticResource TimelineFooterStyle}"
>
<
telerik:GridViewDataColumn.Footer
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadHorizontalDataAxis
Stroke
=
"DarkRed"
Foreground
=
"Gray"
... />
</
telerik:GridViewDataColumn.Footer
>
</
telerik:GridViewDataColumn
>
</
telerik:RadTreeListView.Columns
>
</
telerik:RadTreeListView
>
<!-- some other content -->
<
telerik:RadTreeListView
ItemsSource
=
"{Binding Path=MySecondList}"
>
<!-- similar to the first list -->
</
telerik:RadTreeListView
>