windows-10-mobile

No phone emulator showing in device list in visual studio 2015 RTM

ぐ巨炮叔叔 提交于 2019-12-04 00:18:32
问题 So I would like to test some apps on windows phone 10, but there is no emulator to choose from in the device drop down. I clicked on the 'Download new emulators...' option in the dropdown, downloaded the package, and installed a 3.5GB windows phone 10 emulator but I'm not seeing where it went. I've restarted windows and opened up the test project in VS2015 CE. Still no emulator available. Anyone else have this problem? Any ideas? 回答1: You need to switch the platform in your Visual Studio from

ExpanderView is expanded after page navigation

半城伤御伤魂 提交于 2019-12-03 16:58:49
I'm using a port of the WPF ExpanderView ( ExpanderRT ) in my UWP app to show expandable headers with items. This works fine when the app is launched for the first time and MainPage is initialized. However if I navigate to a new page and then go back to MainPage the ExpanderView looks like expanded, but not it's not showing the items. It should look the same as it was when MainPage was first initialized. I captured a GIF to show the behaviour. This is the XAML of the UserControl on the MainPage ; <ListView x:Name="CategoriesListView" ScrollViewer.VerticalScrollBarVisibility="Hidden"> <ListView

Deploy UWP App Project In VS2015

好久不见. 提交于 2019-12-03 08:19:38
问题 In visual studio 2015 I created an UWP (Universal Windows Platform) app, and try to debug and run it in Windows 10 Mobile 5" emulator. But it shows me this error : the project app1 needs to be deployed before it can be started. verify the project is selected to be deployed the solution configuration manager, or deploy it explicitly by clinking one of the deploy commands in the build menu. What is deploy? And how I can deploy my project !? Thanks ! Here is the error image: 回答1: Right click on

ToogleMenuFlyout and MenuFlyoutPresenterStyle Set Width - Windows 10 Mobile

自古美人都是妖i 提交于 2019-12-02 10:32:39
I need the items in a ToogleMenuFlyout occupy the full width of the screen. But I'm not solve the problem. I'm trying to put the width of my Grid (Grid Main page) but I do not get to do in code-behind. I am applying a style to MenuFlyoutPresenterStyle but also not to give. my code is: AppBarButton x:Name="FiltersPhone" Icon="Filter" Label="Names"> <AppBarButton.Flyout> <MenuFlyout> <MenuFlyout.MenuFlyoutPresenterStyle> <Style TargetType="MenuFlyoutPresenter"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="Margin" Value="0,4

How to get programatically all capablities that enable in manifest for UWP app

白昼怎懂夜的黑 提交于 2019-12-02 10:16:11
问题 ITNOA I want to create a library, and I need to programmatically check to what capabilities enable in UWP app that use my library. I don't know how to do it? 回答1: Reading the appxmanifest directly as a XML file is the way to go here. Something like this: var doc = XDocument.Load("AppxManifest.xml", LoadOptions.None); var xname = XNamespace.Get("http://schemas.microsoft.com/appx/manifest/foundation/windows10"); var capabilitiesNode = doc.Root.Descendants(xname + "Capabilities").First();

Extended execution in UWP

笑着哭i 提交于 2019-12-02 09:06:57
I want to use a background task for my UWP app. The below code, is my back button click event in windows mobile- private async void MainPage_BackRequested(object sender, BackRequestedEventArgs e) { var access= await BackgroundExecutionManager.RequestAccessAsync(); var task = new BackgroundTaskBuilder { Name="My task",TaskEntryPoint=typeof(backGroundTask.Class1).ToString() }; trigger = new ApplicationTrigger(); task.SetTrigger(trigger); task.Register(); //var result = await trigger.RequestAsync(); if (Frame.CanGoBack) { Frame.GoBack(); e.Handled = true; } } public void Run

windows phone deployment error DEP0001 : Unexpected Error: -2147009290 ‭

旧城冷巷雨未停 提交于 2019-12-02 07:52:41
问题 Working on a Windows Phone 10 app and ran it from Visual Studio on my ARM (Lumia 950) device several times. Then an OS update came in for my 950 and it soon did a forced reboot; updating to 10.0.14393.576. I may have had one or two successful deploys/debug launches from VS to the phone after that but then this error started and I am blocked. DEP0001 : Unexpected Error: -2147009290 This comes after the app has apparently successfully deployed and is trying to launch the app. I tried several

windows phone deployment error DEP0001 : Unexpected Error: -2147009290 ‭

寵の児 提交于 2019-12-02 07:06:59
Working on a Windows Phone 10 app and ran it from Visual Studio on my ARM (Lumia 950) device several times. Then an OS update came in for my 950 and it soon did a forced reboot; updating to 10.0.14393.576. I may have had one or two successful deploys/debug launches from VS to the phone after that but then this error started and I am blocked. DEP0001 : Unexpected Error: -2147009290 This comes after the app has apparently successfully deployed and is trying to launch the app. I tried several battery-pull reboots of the phone and rebooting the PC. The app is not installed on the phone (in the app

How to get programatically all capablities that enable in manifest for UWP app

二次信任 提交于 2019-12-02 06:53:00
ITNOA I want to create a library, and I need to programmatically check to what capabilities enable in UWP app that use my library. I don't know how to do it? Reading the appxmanifest directly as a XML file is the way to go here. Something like this: var doc = XDocument.Load("AppxManifest.xml", LoadOptions.None); var xname = XNamespace.Get("http://schemas.microsoft.com/appx/manifest/foundation/windows10"); var capabilitiesNode = doc.Root.Descendants(xname + "Capabilities").First(); foreach (var capability in capabilitiesNode.Descendants()) { Debug.WriteLine(capability.Name + ": " + capability

Turn off soft keyboard in uwp app for windows

五迷三道 提交于 2019-12-01 23:18:34
I have an uwp app running on a handheld device running windows 10. The handheld device has a barcode scanner and all input for the app is made using this. So I want to prevent the keyboard coming up when a user moves the focus to any of the textbox controls. To a large extent, the focus is handled programmatically - and I have prevented the keyboard coming up in those instances with PreventKeyboardDisplayOnProgrammaticFocus=True . But the user does need to move the focus himself sometimes and I cannot find any way of preventing the keyboard coming up when he does this. I have found articles