CommandBarと を使用して、Flyoutこのようなものを構築したいと考えています。

ユーザーはCommandBar(Flyout開く ) のボタンをクリックし、 にテキストを入力してTextBoxから、 の右側にあるボタンをクリックしTextBoxて検索要求を開始する必要があります。問題は、TextBox をクリックしてもテキストを入力できないことです。何かを書く前に、フォーカスを失っているようです。以下はサンプルコードです。どうしたの?
<Page.Resources>
<DataTemplate x:Key="Search">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0" />
<AppBarButton Grid.Column="1" Icon="Find" />
</Grid>
</DataTemplate>
</Page.Resources>
<Grid>
<CommandBar RequestedTheme="Dark">
<AppBarButton Icon="Find">
<AppBarButton.Flyout>
<Flyout Placement="Bottom" >
<ContentPresenter ContentTemplate="{StaticResource Search}"/>
</Flyout>
</AppBarButton.Flyout>
</AppBarButton>
</CommandBar>
</Grid>