uwp

Open and Read an Excel file in UWP application

匆匆过客 提交于 2019-12-13 03:41:58
问题 I'm starting to learn application development trying to implement an application in UWP (Universal Windows Platform) that opens an Excel file to show its data to the user, since I have an idea that would require this feature. However, following a WPF (Windows Presentation Foundation) tutorial to do the same thing I've run into an exception when I try to open the Excel application through code, probably due to some devices on the UWP set not supporting Excel (?). I'm wondering if there is some

SQLite Database vs online database C# UWP

瘦欲@ 提交于 2019-12-13 03:40:01
问题 I have an UWP project with SQLite database stored locally. The app is going to be used by multiple users and I am writing a Client app. Client app should pull data from users database. Is there a way to achieve this without leaving SQLite behind? I really like what I learned about how the SQLite works and would not like to just bin all the work I did. Is it possible to do something like uploading users' data to the server and then retrieve it using client app? Something like uploading the

Creating a UWP DLL using Windows::Media::SpeechSynthesis

天大地大妈咪最大 提交于 2019-12-13 03:33:37
问题 I am currently trying to develop a speech synthesis UWP DLL using the namespace Windows::Media::SpeechSynthesis. I read this documentation and the Microsoft page dedicated to the namespace. I tried to implement the namespace in code. Header file #pragma once #include <stdio.h> #include <string> #include <iostream> #include <ppltasks.h> using namespace Windows::Media::SpeechSynthesis; using namespace Windows::UI::Xaml::Controls; using namespace Windows::UI::Xaml::Media; using namespace Windows

'OperationCompleted' event not raised after 'Paste' operation

一个人想着一个人 提交于 2019-12-13 03:28:17
问题 The OperationCompleted event is supposed to be raised at the end of a Clipboard Paste operation as mentioned in DataPackage: OperationCompleted Occurs when a paste operation is completed. It's not. Why? / What's a workaround? Code : static void CopyToClipboard(string s) { DataPackage dataPackage = new DataPackage(); dataPackage.SetText(s); dataPackage.OperationCompleted += DataPackage_OperationCompleted1; Clipboard.SetContent(dataPackage); } static void DataPackage_OperationCompleted1

How do I check that the user has allowed camera access in a UWP app?

筅森魡賤 提交于 2019-12-13 03:27:15
问题 How do I programmatically check if an UWP app has camera access? I'm trying to do an if check to display some help text if the user has denied access to the camera. I'm trying to get access to it in Unity through Application.HasUserAuthorization, but that doesn't seem to give the right result (eg, it returns true even when you deny access) 回答1: How do I programmatically check if an UWP app has camera access? An UnauthorizedAccessException will be thrown when you attempt to initialize the

Alternative way to create shell in Prism.Windows 7.1.0?

陌路散爱 提交于 2019-12-13 03:26:29
问题 As of this writing, the upcoming Prism.Windows 7.1.0 from MyGet Package is missing override method CreateShell() and I really wonder if it's gonna be moved into another method or it'll be gone in the final release. If so, what's the alternative solution to implement shell view, assuming the code is from this tutorial and DryIoC container is used instead. 回答1: Rather than using the CreateShell() override, you could create the NavigationService inside of a NavigationView . The code provided in

Run python script from UWP

∥☆過路亽.° 提交于 2019-12-13 03:23:13
问题 I've already read and researched all over the net including here: Windows Universal Apps: Call python method from C# [closed] And I understand that UWP is a sandbox and can't open other processes. Nonetheless, I got no other choice but to use python API inside UWP app. The answer in the link above is not clear enough for me and I hope to get any solution, even if it's not a direct one. Of course I tried IronPython which is not working. And Process/ProcessInfo which brigs-up "access denied".

Clear API errors [UWP]

我们两清 提交于 2019-12-13 03:13:57
问题 I have a problem with my API, the GET, POST, DELETE and PUT work perfectly. but if for some reason at the time of making a PUT or a POST I generate errors (404, 400, 500, etc) and it is normal that in some times for any query I generate errors ... the problem is that the next Once I go back to do a POST or PUT (being aware that it is ok) the error is stored and it does not let me make the new query ... I do not know what to do or what is wrong. but the GET is still working THIS IS THE

get all the process in my computer in uwp

岁酱吖の 提交于 2019-12-13 03:13:09
问题 I have a problem when I having my UWP development.In my application, I need to get all the apps details(including its displayname or the ExecutableFileName), which is running in the computer. My first solution is to to use the System.Process class, and I do it like private void Mybutton_Click(object sender, RoutedEventArgs e) { var apps = Process.GetProcesses(); ... } But it is not availbale in the UWP and throws a exception when I try to do it. Secondly,I have tried the System.AppDiagnostics

How to Add Grid to ControlTemplate in UWP C#

人盡茶涼 提交于 2019-12-13 03:06:21
问题 I want add grid to ControlTemplate using C# in UWP application For example I have XAML code like: <ControlTemplate TargetType="HyperlinkButton"> <Grid Name="RootGrid"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="Normal"/> <VisualState Name="PointerOver"> <Storyboard> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <ContentPresenter Name="ContentPresenter" AutomationProperties.AccessibilityView="Raw"