This question is locked. New answers and comments are not allowed.
A picture is worth 1000 words. In the attached, I have a template with a text block which is set to Visible on error and Collapsed when the error goes away. On the initial Collapsed -> Visible, the RadTreeViewItem container expands to make room, but on Visible -> Collapsed, the remaining component re-centers itself without the additional space disappearing. You can see that Tier2.2_F has never had an error, but that Tier1.1_F has, and so has Tier1.1_LF. Tier1.2_F currently has the error text expanded.
The template is:
I would like it if the tree collapsed the extra space. Is this intentional? Side-effect of StackPanel?
Thanks,
Tim
The template is:
| <DataTemplate x:Key="XXXTemplate"> |
| <StackPanel Orientation="Vertical"> |
| <StackPanel Orientation="Horizontal"> |
| <Image Margin="2,0,2,0" Source="xxx.png"/> |
| <TextBlock Text="{Binding XXX}" /> |
| </StackPanel> |
| <TextBlock Margin="20,0,0,0" Style="{StaticResource ValidationTextStyle}" TextWrapping="Wrap" MaxWidth="400" |
| Visibility="{Binding IsValidationMessageVisible, Converter={StaticResource BoolToVisibilityConverter}}" |
| Text="{Binding Path=ValidationMessage}"/> |
| </StackPanel> |
| </DataTemplate> |
I would like it if the tree collapsed the extra space. Is this intentional? Side-effect of StackPanel?
Thanks,
Tim
