foreach (var t in ((App)App.Current).CollectionMessages)
if (t.Uid.ToString() == uid)
t.TexT = z;
The item in CollectionMessages, filed TexT changes Text to what I want. But the UI has no changes, it shows old value. What's wrong?Please help me.
Xaml:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,0,0,0">
<TextBlock Text="Диалоги" Style="{StaticResource PhoneTextNormalStyle}" FontSize="{StaticResource PhoneFontSizeLarge}"/>
</StackPanel>
<Grid Grid.Row="2">
<Grid d:LayoutOverrides="GridBox" >
<ListBox x:Name="mess_list" ItemsSource="{Binding}" >
<ListBox.ItemTemplate>
<DataTemplate >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding TexT}" " />
...