Last active
December 3, 2015 01:40
-
-
Save tmyt/da88def1a6fb0c9803e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
TextBoxにフォーカスを合わせてもSIPが出なくなる現象の再現プログラム | |
================================================================== | |
## 再現手順 | |
1. Windows Phone 8.1 ターゲットでビルド | |
2. Windows 10 Mobile (10586) へインストール | |
3. アプリケーションを起動 | |
4. Windowsキーを押してスタートスクリーンへ戻る | |
5. Backキーを長押ししタスク一覧を表示 | |
6. タスク一覧からこのプログラムを選択 | |
7. 復帰した画面の`Set focus`ボタンをタップ | |
## 期待する結果 | |
TextBoxにフォーカスがセットされ、SIPが表示される | |
## 実際の動作 | |
TextBoxにフォーカスがセットされたような表示になるが、SIPは表示されない。また、TextBoxをタップし選択してもSIPは表示されない。 | |
--> | |
<Page | |
x:Class="textbox_test.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:textbox_test" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | |
<Grid> | |
<StackPanel> | |
<Button Click="ButtonBase_OnClick" Content="Set focus"/> | |
<TextBox x:Name="Input"/> | |
</StackPanel> | |
</Grid> | |
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Navigation; | |
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=391641 | |
namespace textbox_test | |
{ | |
/// <summary> | |
/// An empty page that can be used on its own or navigated to within a Frame. | |
/// </summary> | |
public sealed partial class MainPage : Page | |
{ | |
public MainPage() | |
{ | |
this.InitializeComponent(); | |
this.NavigationCacheMode = NavigationCacheMode.Required; | |
} | |
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) | |
{ | |
Input.Focus(FocusState.Programmatic); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment