windows-10-mobile

UWP C# Disable Orientation Change Animation

ぃ、小莉子 提交于 2019-12-01 22:11:03
Is it possible to disable the 'screen rotating' animation that is executed when phone's rotation changes (from landscape to portrait or vice versa)? you need to use DisplayInformation.AutoRotationPreferences = DisplayOrientations.LandscapeFlipped | DisplayOrientations.Landscape; you need to set the orientation in OnNavigatedTo of you pages, you can enable or disable different orientations depending of your pages or your requirements. Update: If you want to rotate the buttons like the Camera app with a smooth animation there are some ways to do: 1.- Using Gyrometer : You need to create your own

Install 2 versions of same Windows 10 Universal App in the same OS instance

左心房为你撑大大i 提交于 2019-12-01 19:48:31
We are developing a Windows 10 Universal app. Currently, there are 2 branches of the app code, MAIN and DEV. We would like to be able to install (and run) both builds on the same OS instance at the same time. Right now, we do not see any other way of doing this than having a separate VM for each app build, but this is not our preference. Does anyone have any experience with this type of challenge, and does anyone know if this is even possible from technology standpoint? Each package must have a distinct PFN (Package Family Name) listed in the package.appxmanifest.xml if you want them to be

How to handle back button pressed for UWP

自闭症网瘾萝莉.ら 提交于 2019-12-01 08:27:25
I used to use hardware button API in Windows Phone 8.1 XAML. However, in UWP some devices don't have back button. How do I adapt to the new app model? you can use BackRequested event to handle back request: SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; if (App.MasterFrame.CanGoBack) { rootFrame.GoBack(); e.Handled = true; } Little bit explained answer. You can used SystemNavigationManager of Windows.UI.Core namespace For Single Page If you just want to handle navigation for single page. Follow the following steps Step 1 . Use namespace Windows.UI.Core using

Showing touch keyboard on custom control

淺唱寂寞╮ 提交于 2019-12-01 06:08:17
问题 The Touch keyboard sample shows a way for developers to inform the system to display touch keyboard as user touch a custom control [probably in tablet mode]. It was remarked that On the PC, you can request that the touch keyboard display for a custom control by implementing the TextPattern provider interface (ITextProvider) and the ValuePattern provider interface (IValueProvider). Not supported on Phone. Does anyone know how to achieve the same thing on Windows 10 phones? As a side note, I

Set Icon on SecondaryCommand of CommandBar

家住魔仙堡 提交于 2019-12-01 05:26:54
I have a command bar width secondary commands: <CommandBar> <AppBarButton Icon="Back" Label="Back" Click="AppBarButton_Click"/> <AppBarButton Icon="Stop" Label="Stop" Click="AppBarButton_Click"/> <AppBarButton Icon="Play" Label="Play" Click="AppBarButton_Click"/> <AppBarButton Icon="Forward" Label="Forward" Click="AppBarButton_Click"/> <CommandBar.SecondaryCommands> <AppBarButton Icon="Like" Label="Like" Click="AppBarButton_Click"/> <AppBarButton Icon="Dislike" Label="Dislike" Click="AppBarButton_Click"/> </CommandBar.SecondaryCommands> </CommandBar> Why the Like and Dislike icons are not

How to handle back button pressed for UWP

眉间皱痕 提交于 2019-12-01 04:20:14
问题 I used to use hardware button API in Windows Phone 8.1 XAML. However, in UWP some devices don't have back button. How do I adapt to the new app model? 回答1: you can use BackRequested event to handle back request: SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; if (App.MasterFrame.CanGoBack) { rootFrame.GoBack(); e.Handled = true; } 回答2: Little bit explained answer. You can used SystemNavigationManager of Windows.UI.Core namespace For Single Page If you just want

Where are crash dumps in Windows 10 Mobile Creators update?

。_饼干妹妹 提交于 2019-12-01 00:34:35
In Win 10 Mobile was setting for developers where I could set the count of crash dumps must be saved on a device. After installing Creators Update that setting disappeared and crash dumps are not saving anymore. Is it possibble to save crash dumps on a device with Creators Update ? It's necessary for me. I know about app insights, but it's not variant - I need a full dump with native symbols. Microsoft changed this since Windows 10 Mobile Creators update v1703. After activating Device Portal use your development PC and open the Device portal Url that is shown on the phone. Now the updated

Attach Image/ImageBrush from code behind

回眸只為那壹抹淺笑 提交于 2019-11-30 22:27:45
I'm trying to add an Image as the background of a UserControl. Depending on the value of a variable I need to change that background but whatever the path or Uri format I use, the background does not change. I've seen lots of questions here in stackoverflow but none fixes my single problem. I let the code below: if (callback.liveUvis.ContainsUVI(uvi)) { this.Status.Text = "LIVE"; ImageBrush imgB = new ImageBrush(); BitmapImage btpImg = new BitmapImage(); btpImg.UriSource = new Uri(@"///IMG///Live///bck_frame_info_video_live.png", UriKind.Relative); //imgB.ImageSource = new BitmapImage(new Uri(

WP8.1 and WP10 differences

核能气质少年 提交于 2019-11-30 20:38:59
With Windows Phone 8.1, next line worked well but now when users are changing to Windows 10 phones, devices are failing. ProductLicense inAppLicense = CurrentApp.LicenseInformation.ProductLicenses["Keyfor"]; As mentioned worked with WP 8.1 nicely and license information was read and stored nicely. Now with Windows 10 phones, that line just generates exception. "Exception from HRESULT: 0x803F6107". Same result with real devices as well with emulators. So, how can I check LicenseInformation from Windows 10 phones with WP 8.1 project environment (i.e code made with 8.1 projects)? I had the same

Where are crash dumps in Windows 10 Mobile Creators update?

老子叫甜甜 提交于 2019-11-30 19:41:14
问题 In Win 10 Mobile was setting for developers where I could set the count of crash dumps must be saved on a device. After installing Creators Update that setting disappeared and crash dumps are not saving anymore. Is it possibble to save crash dumps on a device with Creators Update ? It's necessary for me. I know about app insights, but it's not variant - I need a full dump with native symbols. 回答1: Microsoft changed this since Windows 10 Mobile Creators update v1703. After activating Device