win-universal-app

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

UWP 10 C#. Reading a text file into a List<>

荒凉一梦 提交于 2019-12-22 14:46:27
问题 Let me start by saying that I'm brand new to UWP and the closest I have come to this language would be C++ about 12 years ago! I'm writing an app for Windows Universal and in it I'll be reading different text files in line by line, split the contents of each line (Some files I won't need to split the line), add the data into a list and then show it on screen. I've tried many ways to do this but I haven't got it working correctly. I currently have two methods that are working, but not

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;

How to bulk insert into SQLITE database?

时光毁灭记忆、已成空白 提交于 2019-12-22 12:25:58
问题 I am developing UWP application. I have a database that should be initialized with about 20,000 records. The records, that are defined as follows: private static readonly ObservableCollection<TickRecord> TickRecords = new ObservableCollection<TickRecord>(); I tried to insert the records one at a time like this: private void CreateFakeTickRecords() { if ( Database.Database.CountTickRecords() > 0 ) { return; } foreach ( var tickRecord in TickRecords ) { Database.Database.AddOrUpdateTickRecord(

Proper way to make a wizard in a UWP application?

邮差的信 提交于 2019-12-22 10:38:06
问题 I'm trying to implement a startup wizard for a UWP application. Preferably the wizard should open in a new window that is non-resizable and located at the center of the screen. I have already tried to use LaunchUriForResultsAsync in order to launch a dummy protocol inside our own app. This way, I could open a new non-resizable window, but it had fixed size (500x500) and position (left side of the main app). Trying to call TryResizeView or to set PreferredLaunchViewSize didn't have any effect,

uwp: how to change background color of listview item based on its value?

浪尽此生 提交于 2019-12-22 10:29:56
问题 Edit: UWP App is not 100% the same like the WPF App. I have a uwp App with a ListView. In the ListView i use a DataTemplate with the class of Tests. It displays the name of the Test and Points. What i want to accomplish is that a Trigger !? checks if the Points are greater than i.e.: 50 and then change the background color of the ListViewItem to red. <ListView.ItemTemplate> <DataTemplate x:DataType="data:Tests"> <Grid> <TextBlock Text="{x:Bind Name}" /> <TextBlock Text="{x:Bind Points}" /> <

Multiple audio stream in Universal App(Runtime API), XNA SoundEffect replacement

陌路散爱 提交于 2019-12-22 10:29:31
问题 As the XNA SoundEffect is no longer available in the Windows Runtime API (for developing Universal App), I need something similar to play multiple audio streams at the same time. Requirements: Play the same audio file multiple times, simultaneously. Previous Silverlight implementation with SoundEffect : // Play sound 10 times, sound can be played together. // i.e. First sound continues playing while second sound starts playing. for(int i=0; i++; i < 10) { Stream stream = TitleContainer

Cannot connect to StreamSocketListener

匆匆过客 提交于 2019-12-22 09:28:02
问题 I'm trying to connect to a StreamSocketListener in my Windows 10 app. This is working if the client socket is inside the same app. But if I try to connect from another application (e.g. Putty) it doesn't work. After a few seconds putty says "Network Error: Connection Refused". Here is my sample code: public sealed partial class MainPage : Page { private StreamSocketListener listener; public MainPage() { this.InitializeComponent(); listener = new StreamSocketListener(); listener

ListView and pointer events - any way to handle this?

不打扰是莪最后的温柔 提交于 2019-12-22 08:35:41
问题 This is quite old and I believe common case - I have a ListView and I want to let it handle vertical scroll, but horizontal movement of pointer I would like to handle myself. There is a good blog post from Rob Caplan, but it's already three years old and I don't know if there had anything changed in W10. In the post, at the end, Rob suggests to avoid scrolling the ListView manually from own event. Is there any better, easier way to handle this? Sample code can look like this: <Grid x:Name=

Unable to cast object of type Page to type 'Windows.UI.Xaml.Controls.Frame' when using mvvm-light navigation service in a win 10 universal app

∥☆過路亽.° 提交于 2019-12-22 07:04:44
问题 I m hitting the following error on my new windows 10 universal app C#/XAML: An exception of type 'System.InvalidCastException' occurred in GalaSoft.MvvmLight.Platform.dll but was not handled in user code Additional information: Unable to cast object of type '' to type 'Windows.UI.Xaml.Controls.Frame'. on the following navigating command in one of my page's view model: _navigationService.NavigateTo(ViewModelLocator.MedicineBoxPageKey); I am trying to have a hamburger menu style navigation (see