Hellow, i have RadTileView controll, which property itemsource bind to my observable collection CommonAssets.My collection has several elements, when I start to delete all items except one, RenderSize in the control does not change as long as I do not re-add a new element to the collection.
Help me please.
<UserControl.Resources>
<DataTemplate x:Key="MeasureItem" >
<Grid Background="{StaticResource MainWindowBorderBrush}" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="240"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<CheckBox Grid.Column="0" Grid.RowSpan="6" VerticalAlignment="Center" Background="{StaticResource LightGrayBrush}" Cursor="Hand" IsChecked="{Binding Selected,Mode=TwoWay}"/>
<TextBlock Grid.Row="0" Grid.Column="1" Text="Название" Style="{StaticResource White18TextStyle}" />
<Label Grid.Row="0" Grid.Column="2" Content="{Binding Name}" Style="{StaticResource EditableLabelStyle}" FontSize="16" MinWidth="50"
Foreground="{StaticResource LightGrayBrush}" Margin="0,-5,0,0" />
<TextBlock Grid.Row="1" Grid.Column="1" Text="Итоговая доза" Style="{StaticResource White18TextStyle}" Margin="0,20,0,0"/>
<telerik:RadComboBox Grid.Row="1" Grid.Column="2" Style="{DynamicResource TransparentComboboxStyle}" ItemsSource="{Binding FinalDoseAssetNames}" Margin="0,20,0,0"
SelectedValue="{Binding SelectFinalDozeAssetName}" />
<TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource White18TextStyle}" Text="Значения для уровней" Margin="0,20,0,0"/>
<PM:DataRangeSliderCtrl Grid.Row="3" Grid.Column="1" Margin="0,20,0,20" />
<PM:KnobSliderCtrl x:Name="KnobSlider" Grid.Row="2" Grid.RowSpan="2" Grid.Column="2" Margin="0,50,0,0" DataContext="{Binding KnobSliderDataContext}" Opacity="0.5"
vM:BaseViewModel.StatusTips="Выберите единицы измерения для радиационного фона"/>
</Grid>
<DataTemplate.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource ActivateKnobSlider}" />
</EventTrigger.Actions>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource DiactivateKnobSlider}"/>
</EventTrigger.Actions>
</EventTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</UserControl.Resources>
<Grid Margin="-6,-30,0,0" >
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<toolbars:EditPanel Grid.Row="0" DataContext="{Binding EditPanel}" HorizontalAlignment="Center" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom" Foreground="{StaticResource MainWindowBorderBrush}"/>
<telerik:RadTileView x:Name="TileView" Grid.Row="1" ItemsSource="{Binding CommonAssets}" Style="{StaticResource HiddenTitleGrayStyle}" BorderBrush="Transparent"
MinimizedColumnWidth="480" MinimizedRowHeight="325" RowHeight="325" MaxWidth="1500" ColumnsCount="3" MaximizeMode="Zero"
ContentTemplate="{StaticResource MeasureItem}" HeaderStyle="{StaticResource GrayTileViewItemStarStyle}" ItemContainerStyle="{StaticResource ReordableItemStyle}"
PreviewTilePositionChanged="{bindExtension:EventBinding PreviewTilePositionChanged}" >
<telerik:RadTileView.Resources>
<DataTemplate DataType="{x:Type pMe:ProtectiveMeasuresAssetVM}"/>
</telerik:RadTileView.Resources>
<i:Interaction.Behaviors>
<behaviors:RadTilesDragDropBehavior/>
</i:Interaction.Behaviors>
</telerik:RadTileView>
</Grid>
Help me please.
<UserControl.Resources>
<DataTemplate x:Key="MeasureItem" >
<Grid Background="{StaticResource MainWindowBorderBrush}" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="240"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<CheckBox Grid.Column="0" Grid.RowSpan="6" VerticalAlignment="Center" Background="{StaticResource LightGrayBrush}" Cursor="Hand" IsChecked="{Binding Selected,Mode=TwoWay}"/>
<TextBlock Grid.Row="0" Grid.Column="1" Text="Название" Style="{StaticResource White18TextStyle}" />
<Label Grid.Row="0" Grid.Column="2" Content="{Binding Name}" Style="{StaticResource EditableLabelStyle}" FontSize="16" MinWidth="50"
Foreground="{StaticResource LightGrayBrush}" Margin="0,-5,0,0" />
<TextBlock Grid.Row="1" Grid.Column="1" Text="Итоговая доза" Style="{StaticResource White18TextStyle}" Margin="0,20,0,0"/>
<telerik:RadComboBox Grid.Row="1" Grid.Column="2" Style="{DynamicResource TransparentComboboxStyle}" ItemsSource="{Binding FinalDoseAssetNames}" Margin="0,20,0,0"
SelectedValue="{Binding SelectFinalDozeAssetName}" />
<TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource White18TextStyle}" Text="Значения для уровней" Margin="0,20,0,0"/>
<PM:DataRangeSliderCtrl Grid.Row="3" Grid.Column="1" Margin="0,20,0,20" />
<PM:KnobSliderCtrl x:Name="KnobSlider" Grid.Row="2" Grid.RowSpan="2" Grid.Column="2" Margin="0,50,0,0" DataContext="{Binding KnobSliderDataContext}" Opacity="0.5"
vM:BaseViewModel.StatusTips="Выберите единицы измерения для радиационного фона"/>
</Grid>
<DataTemplate.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource ActivateKnobSlider}" />
</EventTrigger.Actions>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource DiactivateKnobSlider}"/>
</EventTrigger.Actions>
</EventTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</UserControl.Resources>
<Grid Margin="-6,-30,0,0" >
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<toolbars:EditPanel Grid.Row="0" DataContext="{Binding EditPanel}" HorizontalAlignment="Center" VerticalAlignment="Bottom" VerticalContentAlignment="Bottom" Foreground="{StaticResource MainWindowBorderBrush}"/>
<telerik:RadTileView x:Name="TileView" Grid.Row="1" ItemsSource="{Binding CommonAssets}" Style="{StaticResource HiddenTitleGrayStyle}" BorderBrush="Transparent"
MinimizedColumnWidth="480" MinimizedRowHeight="325" RowHeight="325" MaxWidth="1500" ColumnsCount="3" MaximizeMode="Zero"
ContentTemplate="{StaticResource MeasureItem}" HeaderStyle="{StaticResource GrayTileViewItemStarStyle}" ItemContainerStyle="{StaticResource ReordableItemStyle}"
PreviewTilePositionChanged="{bindExtension:EventBinding PreviewTilePositionChanged}" >
<telerik:RadTileView.Resources>
<DataTemplate DataType="{x:Type pMe:ProtectiveMeasuresAssetVM}"/>
</telerik:RadTileView.Resources>
<i:Interaction.Behaviors>
<behaviors:RadTilesDragDropBehavior/>
</i:Interaction.Behaviors>
</telerik:RadTileView>
</Grid>