title: Vertical alignment for elements within a StackPanel WP C#
body: <p>I'm absolute beginner with WindowsPhone development and C#. Actually, i am developing a app and i need render a horizontal chart bar. 
  I'm trying do this using a LisBox, and inside that i put a StackPanel. This work fine, but the vertical alignment is wrong. I want the elements inside the StackPanel stay aligned on the Bottom, like the image.
  <a href="https://i.stack.imgur.com/rP16f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rP16f.png" alt="enter image description here"></a></p>
  
  <p>My code:</p>
  
  <pre><code>&lt;ListBox ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ItemsSource="{Binding HistoricData.HistoricoList}"&gt;
  
                              &lt;ListBox.ItemsPanel&gt;
  
                                  &lt;ItemsPanelTemplate&gt;
  
                                      &lt;StackPanel Orientation="Horizontal" /&gt;
  
                                  &lt;/ItemsPanelTemplate&gt;
  
                              &lt;/ListBox.ItemsPanel&gt;
  
                              &lt;ListBox.ItemTemplate&gt;
  
                                  &lt;DataTemplate&gt;
  
                                      &lt;StackPanel Orientation="Vertical"
                                                      Width="80"
                                                  Height="450"
                                                  Margin="12 0 0 0"
                                                  VerticalAlignment="Bottom"&gt;
  
                                          &lt;TextBox 
                                                  Text="{Binding UnidadeConsumido}" 
                                                  FontSize="18" 
                                                  HorizontalAlignment="Center"
                                              Margin="0 0 0 0"/&gt;
  
                                          &lt;Rectangle 
                                                      Fill="{StaticResource MeuVivoMainContrastBrush}" 
                                                      Width="80"
                                                      Height="{Binding Consumo}" 
                                              VerticalAlignment="Bottom"/&gt;
  
                                          &lt;TextBox 
                                                      Text="{Binding Periodo}" 
                                                      MaxWidth="120" 
                                                      TextWrapping="Wrap" 
                                                      FontSize="21" 
                                                      HorizontalAlignment="Center" 
                                                      Foreground="#FF616161"
                                              VerticalAlignment="Bottom"/&gt;
                                      &lt;/StackPanel&gt;
                                  &lt;/DataTemplate&gt;
                              &lt;/ListBox.ItemTemplate&gt;
                          &lt;/ListBox&gt;
  </code></pre>
  
  <p>Someone can help me?</p>