uwp

Send chat message

给你一囗甜甜゛ 提交于 2019-12-23 13:14:05
问题 I have this code: var msg = new ChatMessage(); msg.Body = "Test"; msg.Recipients.Add("number"); var cms = await ChatMessageManager.RequestStoreAsync(); await cms.SendMessageAsync(msg); and I have a problem with the await part of code above. I get exception: Access is denied. In capabilities within appxmanifest I have selected: Chat Message Access (I tried select all, but It didn't work). I cannot find any sample and requirements that must be met. Thanks for your help. 回答1: If you take a look

PCL vs .NET Standard library for SQLite in UWP

一曲冷凌霜 提交于 2019-12-23 12:53:53
问题 I have following problem. I use Portable library in my UWP application (Portable library is shared with Xamarin app). This portable library references SQLite. In this Portable library I also use Prism and Unity. For that reason I still can't upgrade them to .NET Standard. SQLite library I use is SQLite-net-pcl version 1.4.18. In my UWP app I add same nugget package. The problem is that this nugget package also support .net standard, as result, when I build my UWP library, I got different

How to Bind IsSelected Property in DataTemplate of ListViewItem

旧街凉风 提交于 2019-12-23 12:19:42
问题 Well, I want to make the ListViewItem in UWP ,that'll be changing his view on selecting. So I need to change the Visibility property of some elements of ListViewItem on selecting. I found some way to do this with making custom Style of ListViewItem and Binding IsSelected property like this: <Style x:Key="VehicleListViewItemStyle" TargetType="ListViewItem" > <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ListViewItem"> <Grid Background="Gray" Margin="1"> <Border

x:Bind Converter and FallbackValue not collaborating (UWP 10)

萝らか妹 提交于 2019-12-23 12:18:52
问题 I have a problem that involves a bunch of code, but I've isolated it down. If you want a TL;DR; jump to it further down. If you want a bit of context, here's my situation: I have created three data converters for my bindings. One of them is a "string prefixer": it prefixes whatever you put in with a fixed string. In the current example, that fixed string is "ms-appx:///cache/" . The second one turns a string type into an ImageSource , and the third one chains multiple converters together. I

System.Xml.XPath in Universal Windows Platform

霸气de小男生 提交于 2019-12-23 11:21:24
问题 According to MSDN, Extensions class in System.Xml.XPath should be available for Universal Windows Platform (Windows 10): https://msdn.microsoft.com/en-us/library/system.xml.xpath.extensions(v=vs.110).aspx However in default configuration not even the System.Xml.XPath namespace is available. The compiler and IntelliSense doesn't find it and even Resharper is unable to find the missing reference - although according to MSDN it should be in System.Xml.Linq.dll. (I can use LINQ without any

System.Xml.XPath in Universal Windows Platform

寵の児 提交于 2019-12-23 11:21:03
问题 According to MSDN, Extensions class in System.Xml.XPath should be available for Universal Windows Platform (Windows 10): https://msdn.microsoft.com/en-us/library/system.xml.xpath.extensions(v=vs.110).aspx However in default configuration not even the System.Xml.XPath namespace is available. The compiler and IntelliSense doesn't find it and even Resharper is unable to find the missing reference - although according to MSDN it should be in System.Xml.Linq.dll. (I can use LINQ without any

How to run UWP NUnit tests in with Visual Studio 2015?

可紊 提交于 2019-12-23 10:57:09
问题 This question is specifically about running Universal Windows Platform (UWP) unit tests written in C# for NUnit. How can I discover and run these tests in Visual Studio? I could find no definitive articles on this on the web, which is really surprising. 回答1: I happened upon this asking if xUnit was still the only way to write tests. NUnit Wiki for Xamerin / UWP My current setup is Visual Studio 2015 Community Nunit Test Adapter (3.2.0) Nunit 3 Templates (1.2) I added a new project in the

Drag and Drop in UWP in list of bank accounts

二次信任 提交于 2019-12-23 10:13:11
问题 I have a Universal Windows Application for a local bank, I'm working on a money transfer view, and they need to transfer money from account to account using the Drag and Drop feature in UWP applications. I've made the animation part, but I need help after I drop the list item to the "Account To" list. I'll attach a screenshot to make it clear. As you see in the picture, I need to drag one item from the "From Account" list and drop it on only one item on "To Account" list. How can I achieve

Windows UWP as Screensaver?

霸气de小男生 提交于 2019-12-23 10:11:10
问题 On Windows 10, can a UWP be launched as a screensaver? If so, how do you register your app with the OS such that it gets listed in the screensaver dialog? (Windows 8 store apps cannot be screensavers. I cannot find any information on UWPs) 回答1: I am very sorry to disappoint you, but no, you can not set your UWP app as a screensaver provider. What you could do instead is offering the user to give your app control of the lock screen or wallpaper image. UWP apps are able to set these images even

Self referencing generic type constraint and XAML in UWP application

别来无恙 提交于 2019-12-23 09:40:20
问题 I am currently working on a UWP application in which one I use self referencing generic type constraint in a PCL. Here a description of the classes of the PCL. First, the class that implements the self referencing generic type constraint (this class also implements the new() constraints) public abstract class A<T> where T : A<T>, new() { //... } Then, I have a base class that extends the Windows.UI.Xaml.Controls.Page class : public abstract class MyPage<T> : Page where T : A<T>, new() { //...