windows-10-mobile

Detect keyboard deployment

给你一囗甜甜゛ 提交于 2019-12-12 04:16:53
问题 I am porting an WP7 Silverlight application to the UWP Windows 10 mobile platform. In my old code I used to check if the keyboard was deployed in the following way: if (DeviceStatus.IsKeyboardDeployed) { // do stuff } else { //do stuff } Now I want to do the same in WM10 but there does not seem to be an equivalent of this function anymore. I already checked the following link And Googled but cannot find it. Does anybody know if you still can detect this in any way? 回答1: I think you can make

Manipulation events of MediaElement not fire when on FullWindows mode

筅森魡賤 提交于 2019-12-12 04:08:04
问题 When I set player not in fullscreen (player.IsFullWindows = false), event work normally but when change player to full screen all manipulation event not work. Anyone have solution? <MediaElement Name="player" Margin="10,5" ManipulationCompleted="player_ManipulationCompleted" ManipulationDelta="Grid_ManipulationDelta" ManipulationMode="TranslateX" > 回答1: I can reproduce this scenario by enabling both the IsFullWindow="True" and the AreTransportControlsEnabled="True" . I think it makes sense,

No networking in background timer task in Windows Phone 8.1 app running on Windows 10 Mobile

吃可爱长大的小学妹 提交于 2019-12-12 03:53:14
问题 A windows phone 8.1 app is running fine on windows 10 mobile except when it tries to do a http call in a background timed task. The background task is using common code which works fine when the app is active, so the code works, and the requested url also works fine when the app is active. The http client used is Windows.Web.Http.HttpClient . I suspect there could be a missing declaration required for windows 10 mobile. 'backgroundTaskHost.exe' (CoreCLR: DefaultDomain): Loaded 'C:\windows

BackgroundTask geofence triggering

夙愿已清 提交于 2019-12-12 03:36:16
问题 I am trying to showToast when the phone leaves or enter the geofenced location (which is set elsewhere and passed in). The issue is that when the app is in the background the trigger does not occur and I don't see the showToast message. I am changing the location manually using an emulator on my PC. Background Tasks> Location is set under the app manifest. This is the code I am using to build the Geofence and backgroundtask //Creates Geofence and names it "PetsnikkerVacationFence" public

Exception when supsending/resuming on W10M - Value does not fall within the expected range

六眼飞鱼酱① 提交于 2019-12-12 02:44:54
问题 I am using Template 10 NuGet Version 1.1.4 and am seeing the following exception when I perform the below actions on my Windows 10 Mobile device: Run the App Press the Windows Home button (takes me back to the Start screen) Run the App again What happens is that the app fails to start, with an exception of: Value does not fall within the expected range. Call Stack: at Windows.UI.Xaml.Controls.ContentControl.put_Content(Object value) at Template10.Common.BootStrapper.NavigationServiceFactory

Phonegap IndexedDb not commiting data in Windows Phone 10 on larger databases

僤鯓⒐⒋嵵緔 提交于 2019-12-12 01:42:31
问题 I have a phonegap app that pulls data from a (CORS) web service and stores it locally in IndexedDB. This all works fine on Android, iOS (using a shimm), and Windows Phone 8.1 but on Windows Phone 10 if the dataset is large it does not complete the transaction, there's 2 specific tables it fails on currently, one with some items of 276 records (total size of json object is 350KB) and one that contains base64 photo data of 16 records (json object size just over 4MB), which isn't that large. The

Why pivot will cause crash when clicking and tapping(only Surface not desktop not phone), but swiping works fine in UWP?

无人久伴 提交于 2019-12-12 01:29:53
问题 I'm upgrading my app to UWP and found that when I swipe the pivot item it works fine while clicking|tapping will cause app crash. This only happens in SP not in desktop mode nor phone. I do think this style is broken, but have no idea why it will fail and how to fix it. Any idea? <Style x:Key="PivotStyle" TargetType="Pivot"> <Setter Property="Margin" Value="0"/> <Setter Property="Padding" Value="0"/> <Setter Property="Foreground" Value="{StaticResource XX.ColorBrush.BB1}"/> <Setter Property=

Complicated background work in UWP, is it real?

牧云@^-^@ 提交于 2019-12-11 17:09:18
问题 Usually I work with Android but now I need to make background application/library/service in UWP. So, I need three background tasks/jobs/services: Every 15 minutes send POST request to the server Every 1 minute check some data Run via push notification a long-running tcp/ip connection which can run about 1 hour (how long can it run?) I am confused, is it possible for UWP? 回答1: The short answer,it is not complicated. Every 15 minutes send POST request to the server Background tasks can run as

Route media audio to speakereven if headset is connect (UWP)

冷暖自知 提交于 2019-12-11 14:46:53
问题 In scenario 2 of this Audio Creation uwp project i noticed it capture audio from microphone and give output to selected output device in real time. So in this scenario i selected speaker as output device and start record so it start capture audio from microphone and give output to speakers even if my earphones is connected. as shown in image it route audio to media instead of headphones so similarly i want to route media, mp3,FM audio to speaker even if headset is connected. 回答1: This is a

Windows 10 Mobile Direct3D

假装没事ソ 提交于 2019-12-11 13:55:01
问题 I have a C++ project targeted for Windows Phone 8.1 that uses Direct3D11, I tried using that project with Windows 10 Mobile device but at fails in the following line: hr = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE,NULL, D3D11_CREATE_DEVICE_DEBUG, featureLevels, sizeof(featureLevels) / sizeof(*featureLevels), D3D11_SDK_VERSION, &m_d3dDevice, &featureLevel, NULL); returning error code 0x887A002D -> DXGI_ERROR_SDK_COMPONENT_MISSING, Any idea how i can make this work on a Windows 10 Mobile