title: How to display a SearchBox in CommandBar
body: <p>I would like to add a <code>AutoSuggestBox</code> in the <code>CommandBar</code>. However the following code does not make the <code>AutoSuggestBox</code> stretch. I tried setting the <code>HorizontalContentAlignment="Stretch"</code> and <code>HorizontalAlignment="Stretch"</code>, but it has no impact. What am I missing? </p>
  
  <pre><code>    &lt;CommandBar Grid.Row="0" HorizontalContentAlignment="Stretch"&gt;
          &lt;CommandBar.Content&gt;
              &lt;AutoSuggestBox HorizontalAlignment="Stretch" Margin="8 8 8 4" PlaceholderText="Search podcasts" QueryIcon="Find"&gt;
                  &lt;Interactivity:Interaction.Behaviors&gt;
                      &lt;Core:EventTriggerBehavior EventName="QuerySubmitted"&gt;
                          &lt;Core:InvokeCommandAction                         
                      Command="{Binding SearchCommand}"
                      InputConverter="{StaticResource QueryArgsConverter}" /&gt;
                      &lt;/Core:EventTriggerBehavior&gt;
                  &lt;/Interactivity:Interaction.Behaviors&gt;
              &lt;/AutoSuggestBox&gt;
          &lt;/CommandBar.Content&gt;
      &lt;/CommandBar&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uy2nG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uy2nG.png" alt="error image"></a></p>