windows-10-universal

ListView ManipulationCompleted event doesn't work on phone

元气小坏坏 提交于 2020-02-14 02:48:30
问题 I have this code in a Windows 10 UWP application: MyListView.ManipulationMode = ManipulationModes.TranslateX; MyListView.ManipulationStarted += (s, e) => x1 = (int)e.Position.X; MyListView.ManipulationCompleted += (s, e) => { x2 = (int)e.Position.X; if (x1 > x2) { DataController.PaneOpen(false); }; if (x1 < x2) { DataController.PaneOpen(true); }; }; The ManipulationCompleted event doesn't work on phone in ListView . The code inside the handler never gets called. It's working fine on PC, but

How to stop Control-I from inserting a tab in a UWP TextBox at CoreWindow scope?

女生的网名这么多〃 提交于 2020-02-04 03:58:28
问题 Strange behavior (to me) when I have a TextBox in a UWP app. Create a Universal, Blank App UWP app in Windows 10. Add a TextBox to the default grid with this code: <TextBox Text="There's not much spam in it" Name="textBox" /> Build and run the application. Click inside of the TextBox Type Control-I. A tab is inserted. What causes this behavior? I'm trying to set up window level shortcuts in a Windows 10 application by hooking up a handler to Window.Current.CoreWindow.KeyDown , but I think

Install UWP without developer-mode and sideloading

心不动则不痛 提交于 2020-01-30 12:37:08
问题 In the win10 UWP with non-store, install app should open developer-mode or side-loading mode. However, My company have high security level. I can't change any setting for target notebooks. Specifically, these notebooks even not "for developers" in update&security. My job is create an auto wifi-selector app with UWP for company. So, this app will not upload to Microsoft store. Has any way to install UWP app to hundreds of notebooks with not open developer-mode or side-loading mode. 回答1:

Install an appx or appxbundle in a Windows Phone 10?

早过忘川 提交于 2020-01-30 08:27:05
问题 I'm developing an UWP app which is running without any troubles when it's being debugged using VS2015 but when it's installed using an appx or appxbundle. I've read many packaging and installation guides and it doesn't seem I'm leaving steps out (I just need to deploy the app in a device for testing purposes only), but this behavior makes me wonder if maybe I am... I'm not sure if I've let enough information but I really don't know what else to explain :( Could anyone tell me what should I do

different screen and different view

删除回忆录丶 提交于 2020-01-25 19:45:23
问题 I want to have a different view with different screen in UWP, For example I have a grid with three columns in UWP app, inside the three columns it has two textboxes and button or other control. I want to change the Grid's column and row based on the screen size. When the screen size is more than 1000, the grid will have one row with three columns . when is more than 600 it will have two row, or it will have three row. 回答1: In UWP app, if you want to show different content/view based on the

different screen and different view

家住魔仙堡 提交于 2020-01-25 19:45:11
问题 I want to have a different view with different screen in UWP, For example I have a grid with three columns in UWP app, inside the three columns it has two textboxes and button or other control. I want to change the Grid's column and row based on the screen size. When the screen size is more than 1000, the grid will have one row with three columns . when is more than 600 it will have two row, or it will have three row. 回答1: In UWP app, if you want to show different content/view based on the

Do all UWP apps leak memory when navigating pages?

喜欢而已 提交于 2020-01-21 03:01:04
问题 So I've been getting my teeth into UWP and developing a simple app in C# using VS2017 v15.6.4, on the latest release of Windows 10. When running the app I notice its memory usage continues to increase over time. After a lot of pairing back of the code, I've come to the conclusion that this is being caused by page navigation calls, such as: Frame.Navigate(typeof SomePage); Frame.GoBack(); Frame.GoForward(); It is very easy to create and observe this process... 1) In VS2017, create a new Blank

How to hide/remove Cordova Windows 10 app back button?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-17 08:23:08
问题 The windows 10 app generated by cordova shows a back button on extreme top left, when I run the app in desktop. When user taps the button, the application behaves like a web. This option is really annoying. Is there anyway that I can hide or remove the back button? Looking for solution preferably in Javascript, C# can be optional. 回答1: Is there anyway that I can hide or remove the back button? Looking for solution preferably in Javascript, C# can be optional. If you are refering to the back

Can't access USB device in Universal App

此生再无相见时 提交于 2020-01-17 05:39:07
问题 I have a USB device that I have successfully set to use the WinUSB driver, and it shows up on the Raspberry Pi 2 startup screen as a connected device. I have added it as a capability to the manifest: <Capabilities> <Capability Name="internetClient" /> <DeviceCapability Name="usb"> <Device Id="vidpid:1234 abcd"> <Function Type="classId:ff * *"/> </Device> </DeviceCapability> </Capabilities> Now I try to access it from my Universal App using the following code I found on MSDN: string aqs =

LocalSettings breaking on unhandled XAML exception

微笑、不失礼 提交于 2020-01-17 05:06:58
问题 I am having some trouble figuring out why, when I try to define LocalSettings to a field so I can access it from multiple methods, it performs a break during a debug run within App.g.i.cs at the following code: #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break(); }; #endif Here is my actual class: public sealed partial class MainPage : Page {