Can I change the values of textBlockZona in DataTemplate? I need to create a dynamic header list, how can I change myTEXT content in the code?
<Page.Resources>
<DataTemplate x:Key="HeadTemplate">
<Grid
Width="745" Height="61" HorizontalAlignment="Left" VerticalAlignment="Top" AllowDrop="True" Background="Transparent">
<Grid
x:Name="gridZona" Width="122" Height="36" Margin="0,10,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
<Rectangle x:Name="ZonaButton" Fill="#FF2994FF" />
<TextBlock
x:Name="textBlockZona" Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" FontWeight="Bold" Foreground="White"
Text="MYTEXT"
TextAlignment="Center" TextWrapping="Wrap" d:LayoutOverrides="TopPosition, BottomPosition" />
</Grid>
</DataTemplate>
<DataTemplate x:Key="ViewTemplate">
<local:PosItemViewer />
</DataTemplate>
</Page.Resources>
<ListView x:Name="RigheView" Grid.Row="1" Width="744" Height="867" Margin="10,203,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"
ContainerContentChanging="RigheView_ContainerContentChanging"
HeaderTemplate="{StaticResource HeadTemplate}"
IsItemClickEnabled="True"
ItemTemplate="{StaticResource ViewTemplate}"
SelectionMode="None" />