I want to use the CommandBar
and a Flyout
to build something like this.
your TextBox is actually never getting focus at all, somehow flyout prevents it, the only action I can get from this TextBox is PointerOver state - causing it to look like it's got focus, but it is not.
You need to set the focus in the code, for example when the flyout opens - it works, but may be not the nicest solution, cause you need to name the TextBox in order to get it from code behind.
and then code behind:
private void FlyoutBase_OnOpened(object sender, object e)
{
Test.Focus(FocusState.Programmatic);
}