uwp

C# UWP LiveSKD and OneDrive access using FileOpenPicker

☆樱花仙子☆ 提交于 2019-12-22 18:27:20
问题 I'm developing a Universal Windows Platform app that allows a user to open and edit files using the FileOpenPicker. The idea is that the user can choose any file on their computer, including files located in their OneDrive folders. On Windows 10 Desktop, this is working perfectly. However, on a Windows Phone 10 device, the result is very different. When a user chooses a file with the picker, the file is downloaded to a local storage folder, and the user is able to edit the file. But when the

Relative width for UI Elements with RelativePanel in XAML with UWP Apps

风格不统一 提交于 2019-12-22 18:19:14
问题 I want to realize something like |Image (40% Width)|Text(60% Width)| that adapts to small screens like |Image (100%)| |Text(100%| I've got the following solution with AdaptiveTrigger and an Grid. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="VisualStateGroup"> <VisualState x:Name="NarrowView"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="0" /> </VisualState.StateTriggers> <VisualState

UWP - Frame Navigate only crashes when passing a parameter

一笑奈何 提交于 2019-12-22 17:58:29
问题 I'm trying to pass the id of the clicked element as a string to a new page, however the app always crashes. I'm not entirely sure how to find out the cause of the problem as every example I've found uses the same method and it works just fine for them. The sender event: private void MovieBox_OnTapped(object sender, TappedRoutedEventArgs e) { var id = (sender as StackPanel).Tag as string; Debug.WriteLine(id); //the correct id in string Frame.Navigate(typeof(MovieDetailsPage),id); } The

SpeechRecognizer not work, COMException: Class not registered/ UWP App Windows IoT (10.0.10586) and Visual Studio 2015 Update 1

两盒软妹~` 提交于 2019-12-22 17:58:19
问题 After I have installed Windows IoT (10.0.10586) and Visual Studio 2015 with Update 1, I got COM-Exception when I use the SpeechRecognizer in Universal App on my Raspberry Pi 2 (with Windows IoT 10.0.10586). If I run the SpeechRecognizer UWP App on Windows 10 it works without any problems, the COM-Exception occurs only in Windows IoT (10.0.10586). With older version of Windows IoT and Visual Studio 2015 without Update 1 it works, too. Has anyone a solution for the problem? var speechRecognizer

Is there any way to fetch Mobile Number of windows phone 10 using c#

泪湿孤枕 提交于 2019-12-22 17:33:40
问题 I have created my application in UWP. I need to search current sim and sim Mobile number. Please help me for find the mobile number using windows phone 10 in c# 回答1: Yes, it is possible. You can use SmsDevice2.AccountPhoneNumber to get the phone number. From this article,Pay attention of This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. Hence it requires the

Horizontal swipe gesture on UWP

倾然丶 夕夏残阳落幕 提交于 2019-12-22 17:07:53
问题 is there any way to get swipe gesture same as windows phone 8 with wptoolkit. Because wptoolkit nuget package is not available for uwp, so i am unable to get similar swipe gesture on UWP In windows Phone 8 with the help of WPtoolkit nugetget package i placed this <toolkit:GestureService.GestureListener> <toolkit:GestureListener Flick="OnSwipe"/> </toolkit:GestureService.GestureListener> over text block, so i can swipe left to right or right to left over textbox1 . and swipe gesture help me to

Horizontal swipe gesture on UWP

橙三吉。 提交于 2019-12-22 17:07:24
问题 is there any way to get swipe gesture same as windows phone 8 with wptoolkit. Because wptoolkit nuget package is not available for uwp, so i am unable to get similar swipe gesture on UWP In windows Phone 8 with the help of WPtoolkit nugetget package i placed this <toolkit:GestureService.GestureListener> <toolkit:GestureListener Flick="OnSwipe"/> </toolkit:GestureService.GestureListener> over text block, so i can swipe left to right or right to left over textbox1 . and swipe gesture help me to

Xamarin Form - TaskCanceledException thrown on ScanFilesToFolderAsync

亡梦爱人 提交于 2019-12-22 12:36:51
问题 in my UWP application i am working on scan functionality. in this application user can scan the document through scanner by selecting flatbed or auto feeder.Now problem is when i am trying to scan it gives the en exception a Task was canceled. please help.. thanks in advance. :) have a great day... :) private async void Btnscan_Click(object sender, RoutedEventArgs e) { FolderPicker folderPicker = new FolderPicker(); folderPicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;

UWP Webview get links from webpage into an array

社会主义新天地 提交于 2019-12-22 11:29:11
问题 I can only find old outdated answers for before UWP Win 10. I know how to do it the old ways, but it is giving me problems. What I have so far is below, note the problem seem to lie in the VB where it isn't doing the element by tag name command like I've been told it should. Change that to inner HTML though, and it will populate the html variable with the full page. So I just can't get the links themselves it seems. Any help is appreciated! Thanks! XAML <Page x:Class="webviewMessingAround

Irritating blank space between Title Bar and Tabs in Xamarin.Forms UWP project

我与影子孤独终老i 提交于 2019-12-22 11:06:31
问题 I'm practically new to Xamarin.Forms and I'm developing a rather simple cross-platform application. The app displays good enough in Android, but in UWP there is a stupid blank space. The project consists of a TabbedPage with 4 NavigationPages inside it, in order to push and pop pages inside them. After a little digging into UWP platform specifics, I was able to change the style of my tabs. I've been looking 3 days now for a solution, and it's driving me crazy. The only solution that I have