title: How to create a navigation bar in xaml, which can scale with different screen resolutions?
body: <pre><code>&lt;Grid
      Width="auto"&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition Height="100"/&gt;
      &lt;/Grid.RowDefinitions&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="*"/&gt;
          &lt;ColumnDefinition Width="*"/&gt;
          &lt;ColumnDefinition Width="*"/&gt;
          &lt;ColumnDefinition Width="*"/&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      &lt;Grid
          Grid.Row="0"
          Grid.Column="0"
          Grid.ColumnSpan="4"
          HorizontalAlignment="Stretch"
          Width="auto" Background="Red"
          &gt;
          &lt;ItemsControl ItemsSource="{Binding Buttons}"  HorizontalAlignment="Stretch"&gt;
              &lt;ItemsControl.ItemsPanel&gt;
                  &lt;ItemsPanelTemplate&gt;
                      &lt;StackPanel Orientation="Horizontal" 
                                  HorizontalAlignment="Stretch"
                                  Background="Green"
                                  &gt;&lt;/StackPanel&gt;
                  &lt;/ItemsPanelTemplate&gt;
              &lt;/ItemsControl.ItemsPanel&gt;
              &lt;ItemsControl.ItemTemplate &gt;
                  &lt;DataTemplate&gt;
                      &lt;Button  
                          BorderThickness="0"
                          Background="Blue" 
                          HorizontalAlignment="Stretch"
                          Command="{Binding NavigateCommand}" 
                          Margin="0,0,120,0" 
                          Width="auto"
                         &gt;
                          &lt;Image Source="{Binding Image}" HorizontalAlignment="Stretch"&gt;&lt;/Image&gt;
                      &lt;/Button&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ItemsControl.ItemTemplate&gt;
          &lt;/ItemsControl&gt;
      &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>This is the code I am using to display the nav bar , where this is written in Controller, and the navbar images are populated dynamically using Binding.</p>
  
  <p>I am trying to create a nav bar, which could be used on different screen resolutions, I have tried with various methods , but it is not scaling according to different screen resolutions</p>