win-universal-app

Document support (rtf, doc, docx) for UWP/Windows 10 Mobile

孤街醉人 提交于 2019-12-05 19:47:15
How can I display documents (doc, docx, rtf) in an UWP app? The WebView isn't able to do this. Other options would be calling an external application with Windows.System.Launcher.LaunchUriAsync (e.g. Word) or using a 3rd party library. The requirement is to have the data in the app, because you don't have control over it, if it's handled to another one. Another option would be to convert it to another format (e.g. PDF) which UWP can handle (not really). Any ideas? If you would like to display word or pdf files in the UWP app you can use WebView control with Google Docs Viewer - I was using it

Error: DEP0001, HRESULT: 0x80073CF9 when deploying UWP app to Phone

喜你入骨 提交于 2019-12-05 19:19:08
Despite the alike existing threads here on SO, my problem is somehow different, I have an application that I made, I deploy it, works fine. I copy the same application solution, make some changes on it to create an other application that have almost the same logic as the first one (can't re-code everything from scratch), deploy it, and I receive this : Severity Code Description Project File Line Suppression State Error Error : DEP0001 : Unexpected Error: Install failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CF9) MyApplication I believe this is cause by the fact

“Visual Studio update required” but its up to date

余生长醉 提交于 2019-12-05 19:03:28
问题 I have a fresh install of Visual Studio 2015 community with Windows 10 UWP SDK running in my computer. Recently I tried to open a project that I imported from another computer and when I launch the solution I get the next error message: Review Solution Actions Visual Studio update required One or more projects require a platform SDK (UAP, Version: 10.0.10586.0) that is either not installed or is included as pat of a future update to Visual Studio. Install the platform SDK to open these

ListView and pointer events - any way to handle this?

[亡魂溺海] 提交于 2019-12-05 17:40:18
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="mainGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ListView

CachedFileUpdater doesn't work in OneDrive app on mobile?

你离开我真会死。 提交于 2019-12-05 14:38:47
There is a Cached File Updater contract which allows apps like OneDrive or DropBox to keep files in sync with remote repository when users change them though file pickers. It works roughly like this: User gets a file using FileOpenPicker. User changes file. The source app gets notification that file is changed and uploads new file to backing storage. However, while in official DropBox app this scenario works perfectly, in OneDrive app it doesn't. I'm getting UnauthorizedAccessException when try to get stream for read from a file. I understand some people actually able to change a file, but it

Windows 10 (Universal Windows App) data validation

人走茶凉 提交于 2019-12-05 14:24:34
I was trying to figure out how to do the data validation under UWP, but according to what I have found out, there is basically nothing I can implemented yet. Due to that I tried to implement my custom validation logic. Problem I have now is, that I am showing error information on one TextBlock rather than directly under the specific TextBox which contains data error. This is what I do at the moment: public class Customer : ViewModel { private string _Name = default(string); public string Name { get { return _Name; } set { SetProperty(ref _Name, value); OnPropertyChanged("IsValid"); } } private

In-App purchase trouble on Windows 10 UWP

给你一囗甜甜゛ 提交于 2019-12-05 12:49:12
问题 I'm trying to enable an in-app purchase item on my app (already on Windows 10 store), but I always receive the same error message when trying to buy this item: This in-App Purchase item is no longer available in MyAppName The code is fairly simple and just what the docs recommend: var itemName = "app.advanced_items.full"; if (CurrentApp.LicenseInformation.ProductLicenses[itemName].IsActive) { return true; } var results = await CurrentApp.RequestProductPurchaseAsync(itemName); if (results

Is it possible to use a SQLite database in a shared folder in a PC?

青春壹個敷衍的年華 提交于 2019-12-05 12:40:41
I am developing an UWP application (Windows phone 10) and I have a SQLite database in a shared folder in a PC in my LAN. I would like to know if I can use this database in the windows phone app, like I do with my WPF application, that I can set the path of the database and I can use it from any computer in my lan. Thanks. Short answer : Yes you can however you will need to be careful about the journaling mode you choose for example WAL does not work over a network file system. Long answer : If you see yourself in a situation where many clients/programs need to access a common database over a

How to extract the argument from a Cortana command with a phrase topic, activated via text?

◇◆丶佛笑我妖孽 提交于 2019-12-05 12:17:03
High Level: I want to use my custom Cortana command "Notepad" in TEXT mode. For instance, by pressing WIN+S and typing "appname Notepad Example sentence!". (This will open Notepad and input "Example sentence!".) The Notepad command already works in VOICE mode: when I press WIN+C and say "appname Notepad Example sentence!", my notepad script is run with the payload "Example sentence!". The Problem: When I press WIN+S and input "appname Notepad Example sentence!", the text property of SpeechRecognitionResult is "Notepad ..." (as opposed to voice where it is "Notepad Example sentence!", as

Visual Studio 2015, Nuget and “same key has already been added.”

隐身守侯 提交于 2019-12-05 09:53:17
I have Visual Studio 2015 RC. When I open a console app or a Windows Phone 8 Silverlight project, everything works fine, I can use Nuget without problems. When I open a Universal App project (Windows 8.1 + Windows Phone 8.1), Nuget breaks. When I open the Nuget console, I see When I try to install a Nuget package using the Nuget GUI, I get the same error. One more strange thing. When I open VS2015 RC without any projects and open the Nuget console, I do not get the error. Then when I open my Universal App project, the error appears. I am pretty sure it is connected to the Universal App project