Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は質問があります、地下鉄アプリケーションで、アプリがどの解像度のディスプレイにそれをインストールするかをどのように検出するか。助けてください。
インストール時に、何も検出できません。
アプリの実行中に解像度を検出できます。これは明らかです。アプリのインストール後に解像度を変更できます。
次のコードを使用します。
Size renderSize = Window.Current.Content.RenderSize; var resolution = renderSize;
Window.Current.Content が null でないことを確認してください。