win-universal-app

Windows Phone 8.1 check if password set else load new page

女生的网名这么多〃 提交于 2019-12-19 18:23:51
问题 I Have a very similar situation to this guys question in that I have a Login Page which is my MainPage.xaml file but I have another page called SetPassword.xaml that I want to load if a user has not set a password yet. Essentially this is the first time that the App loads after it has been installed. I've spent hours on SO trying various different solutions (including the one I linked to) but I'm just not getting anywhere and it seems that many of the solutions are either for WP7 or WP8 and

Read file from subfolder of application installation folder

萝らか妹 提交于 2019-12-19 11:21:38
问题 I have to read the text content from an .txt file, this file is located in app installed folder, in a subfolder, according to Microsoft docs, I am doing it like this: private async void readMyFile() { // Get the app's installation folder. StorageFolder appFolder = Windows.ApplicationModel.Package.Current.InstalledLocation; // Get a file from a subfolder of the current folder by providing a relative path. string txtFileName = @"\myfolder\myfile.txt"; try { //here my file exists and I get file

make a content Dialog movable like the one in the Groove app

你说的曾经没有我的故事 提交于 2019-12-19 10:49:14
问题 I have created a ContentDialog to apply a Style (that I can't apply with a Message Dialog and a PopUp),but I am having problem with it,it's not movable or I can't close it like the Frame that appears when I click on the button "Connexion"in the Groove App have you please any idea,which part I can modify in the ContentDialog style to get this ContentDialog movable and close it like the image on top I work on a universal app 回答1: have you please any idea,which part I can modify in the

What are the app memory limits for Windows 10?

江枫思渺然 提交于 2019-12-19 07:17:12
问题 The app memory limits for Windows Phone 8.1 are easily found on MSDN. But I cannot seem to find definitive info on memory limits for apps on Windows 10, and especially Windows 10 Mobile. What are the limits for each device family (Xbox, desktop, phone, IoT)? 回答1: I found they are available as follows: Windows.System.MemoryManager.AppMemoryUsage = current memory usage (unsigned long) Windows.System.MemoryManager.AppMemoryUsageLevel = 0, 1, 2, etc. Windows.System.MemoryManager

Attach Image/ImageBrush from code behind

跟風遠走 提交于 2019-12-19 03:16:33
问题 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//

Uwp navigation example and focusing on control

我的未来我决定 提交于 2019-12-19 02:07:03
问题 I use uwp navigation example as an example for my application navigation. I need to set the focus on TextBox. I try it on uwp navigation example. For BasicPage I add this code: <StackPanel Orientation="Vertical"> <TextBox x:Name="Test" /> <TextBox x:Name="Test1" /> </StackPanel> public BasicPage() { this.InitializeComponent(); this.Loaded += BasicPage_Loaded; } private void BasicPage_Loaded(object sender, RoutedEventArgs e) { Test1.Focus(FocusState.Programmatic); } Test1 does not receive the

Does RTCPeerConnection work in Microsoft Edge?

有些话、适合烂在心里 提交于 2019-12-18 21:17:37
问题 I am currently working on VoIP using WebRTC. It's going to be a UWP application written in JavaScript. Now, I am trying to check whether it works or not by testing samples from https://webrtc.github.io/samples on Microsoft Edge. It turns out that it works fine except RTCPeerConnection . For example, when I opened https://webrtc.github.io/samples/src/content/peerconnection/audio in Edge, it gave me getUserMedia() error: NotFoundError when I clicked the call button. On Chrome, it works fine.

Get Keyboard state in Universal Windows Apps

最后都变了- 提交于 2019-12-18 20:52:10
问题 I want to detect a key combination (e.g. Control-A ) in a Windows App. The KeyDown event handler has information about the last key pressed. But how do I find out whether the Control key is pressed as well? 回答1: You can use CoreVirtualKeyStates.HasFlag(CoreVirtualKeyStates.Down) to determine is the Ctrl key has been pressed, like this - Window.Current.CoreWindow.KeyDown += (s, e) => { var ctrl = Window.Current.CoreWindow.GetKeyState(VirtualKey.Control); if (ctrl.HasFlag(CoreVirtualKeyStates

Xamarin Form - How To store an image in PDF or JPEG Format in UWP

◇◆丶佛笑我妖孽 提交于 2019-12-18 17:34:47
问题 hello friends i am developing the DMS application in which user can scan the document or images through scanner and upload on server. For scanning purpose i am refered this link it works perfectly..:) Now problem is ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) this Method accepts the image format which is supported by scanner. my scanner only support the .BMP format but i want to store an image in PDF or JPEG Format in given folder name. Else please suggest any

Xamarin Form - How To store an image in PDF or JPEG Format in UWP

你。 提交于 2019-12-18 17:34:10
问题 hello friends i am developing the DMS application in which user can scan the document or images through scanner and upload on server. For scanning purpose i am refered this link it works perfectly..:) Now problem is ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) this Method accepts the image format which is supported by scanner. my scanner only support the .BMP format but i want to store an image in PDF or JPEG Format in given folder name. Else please suggest any