私は最初のUWPアプリケーションであるアプリを作っています。ポートレートモードを維持するにはコマンドバーが必要ですが、残りのアプリケーションはすべて横長モードになります。ここコマンドバーがランドスケープモードにならないようにする
And in landscape mode, see the bar didn't moved.
は、これまでの私のコードです:<Page.BottomAppBar>
<CommandBar IsSticky="True" Name="cmdBar_ed">
<CommandBar.PrimaryCommands>
<AppBarButton Name="newBtn" Label="" Width="30" Click="newFile">
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/test.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Name="newBtn1" Label="" Width="30" Click="newFile">
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/test.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Name="newBtn2" Label="" Width="30" Click="newFile">
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/test.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Name="newBtn3" Label="" Width="30" Click="newFile">
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/test.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Name="newBtn4" Label="" Width="30" Click="newFile">
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/test.png"/>
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton Name="btnTab" Label="" Width="30" Click="insertTab">
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/btnIcon/Tab.png"/>
</AppBarButton.Icon>
</AppBarButton>
</CommandBar.PrimaryCommands>
<CommandBar.SecondaryCommands>
<AppBarButton Name="btn_save" Icon="Save" Label="Save" Click="save"/>
<AppBarButton Name="btn_saveAs" Icon="Save" Label="Save As" Click="saveAs"/>
<AppBarButton Name="btnClose" Icon="Cancel" Label="Close File" Click="close" />
</CommandBar.SecondaryCommands>
</CommandBar>
</Page.BottomAppBar>
また、別の奇妙なことがあり、その画面上のキーボードが起動されると、これを私はこのようなものが必要バーは画面上のキーボードの上に留まり、固定された位置にはありません。修正するにはどうすればいいですか?
あなたはUWPを開発していますか? UWPアプリでは、AppBarアイコンの周りに丸みのあるグリフがないので、これはWindows Phone 8.1アプリケーションのようです。 – schumi1331
はい、私はそれがUWPアプリケーションであると確信しています、私はそれを実行するために私のLumia 435(Windows 10のモバイルにアップグレード)を使用しています。これまでのところ、これらの問題とは別に機能します。 – William