LoginSignup
1
0

More than 5 years have passed since last update.

【UWP】FlyoutのTextBox/ComboBoxが使えないときはAllowFocusOnInteraction="True"を設定しよう【AU必須】

Last updated at Posted at 2018-11-28

最低ターゲットバージョン: Anniversary Update (1607)

<AppBarButton Label="購読グループを追加" Icon="Add" 
              AllowFocusOnInteraction="True"
              >
    <AppBarButton.Flyout>
        <Flyout>
            <StackPanel>
                <TextBox x:Name="SubscriptionGroupNameTextBox"
                    InputScope="Text"
                    />
                <Button Content="追加"
                    Command="{Binding AddSubscription}"
                    CommandParameter="{Binding ElementName=SubscriptionGroupNameTextBox, Path=Text}"
                    HorizontalAlignment="Right"
                    />
            </StackPanel>
        </Flyout>
    </AppBarButton.Flyout>
</AppBarButton>

参考

FrameworkElement.AllowFocusOnInteraction Property - Microsoft Docs

Can't enter enter text in TextBox control inside Flyout - stack overflow

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0