Well, I'm trying to fill a grid divided into rows inside a scrollview (to allow the user to view all content) with other grids. Each grid is inside a row and contains the contents of a schedule I want to show. I want the program list of a radio program to appear. The grid that shows each schedule should be the same and contains one image and 3 textblocks. I used a grid because I wanted to split it into columns.
The problem is that I have several, after all it's a programming list. But I wanted some library that would help me make multiple copies of the grids to fill with the programming that is the low server app. If I do not do this my code will become gigantic and ugly.
My XAML looks like this:
<ScrollViewer
Grid.Row="2"
Grid.RowSpan="5"
ScrollViewer.VerticalScrollBarVisibility="Hidden" >
<Grid Name="grid_scroll_programacao_santa_ines" Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="90"/>
<RowDefinition Height="90"/>
<RowDefinition Height="90"/>
<RowDefinition Height="90"/>
<RowDefinition Height="90"/>
</Grid.RowDefinitions>
<Grid Name="grid_programacao_santa_ines"
Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Name="txtblock1"
Text="06:00"
Foreground="#1A1F49"
FontSize="25"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Grid.Column="0"/>
<Image Name="image"
Source="/Imagens/SmallLogo.png"
Grid.Column="1"/>
<TextBlock Name="txtBlock2"
Text="Acorde e Recorde"
Foreground="#1A1F49"
FontSize="25"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Grid.Column="2"/>
<TextBlock Name="txtBlock3"
Text="Nome do Locutor"
Foreground="#9B9B9B"
FontSize="25"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Grid.Column="2"/>
</Grid>
</Grid>
</ScrollViewer>