1
Guys, I’m trying to fill a grid divided into lines within a scrollview (to allow the user to view all content) with other grids. Each grid is within a line and contains the content of a schedule that I want to show. I want the programming list for a radio show to appear. The grid that shows each programming should be equal and contains an image and 3 textblocks. I used a grid because I wanted to divide it into columns.
The problem is that I have several, after all is a programming list. But I wanted some library that would help me make several copies of the grids to fill in with the programming that and the server download app. If I don’t do this my code will get giant and ugly.
My XAML is 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>
It took a while, but it came. Thanks for the answer. I hope it helps someone.
– debeka