uwp

Mvvm-Light User Control RelayCommand TemplateBinding

孤者浪人 提交于 2019-12-24 08:28:36
问题 [UWP - Windows 10] I'm new to MVVM-Light and so I got some starter issues. I created a custom Usercontrol which is called TileToolbar and is containing this xaml: <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <RadioButton Style="{StaticResource NavRadioButtonStyle}" Tag="" Foreground="Green"></RadioButton> <RadioButton Style="{StaticResource NavRadioButtonStyle}" Tag="" Foreground="Green"></RadioButton> <RadioButton Style="{StaticResource NavRadioButtonStyle}" Tag=""

UWP: Cannot access LicenseInformation

懵懂的女人 提交于 2019-12-24 08:26:14
问题 I am using the following piece of code to check in my UWP-JS app if an in-app purchase is active: (function () { // Initialization // var store_app = Windows.ApplicationModel.Store.CurrentApp; var store_app = Windows.ApplicationModel.Store.CurrentAppSimulator; var licenseInformation = store_app.licenseInformation; // Check for Product if (licenseInformation.productLicenses["product1"].isActive) { // do something } else {}; })(); when I debug this I get the following error for line 5:

Using Windows Desktop App Converter, Is it possible to start with Windows?

别来无恙 提交于 2019-12-24 08:23:05
问题 I have used Windows Desktop App Converter to convert my WPF app to a store app. It all works apart from my "start with windows" feature. The way I was solving this was to create a shortcut in the "C:\Users\%%USER%%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" directory to my app but it seems like this method doesn't work any more (the shortcut doesn't appear). So how does one go about getting your app to launch on windows boot any more? Cheers, Mike 回答1: So how does one go

How to render a large items listview into RenderTargetBitmap?

风流意气都作罢 提交于 2019-12-24 08:11:55
问题 I'm trying to render a list view using RenderTargetBitmap. The code below only renders one page. It doesn't add pages to the downloaded pdf according to the list view. This code takes snapshot of what is shown on the page but not whole list. I followed this link: XAML To PDF Conversion This is my code behind file: using Syncfusion.Pdf; using Syncfusion.Pdf.Graphics; using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Runtime

UWP App Compilation Error PRI175 with 0xdef00071

≡放荡痞女 提交于 2019-12-24 08:10:13
问题 We have a UWP app which is referring some UWP class libraries and some Portable Class Library (PCL) libraries. Recently we have converted some of these PCL libraries to .NET Standard 2.0 project and post to that, we are getting the below error on compiling the UWP app. error PRI175 : 0x80070002 - Processing Resources failed with error : The system cannot find the file specified. GENERATEPROJECTPRIFILE : error PRI252: 0xdef00071 - File <UWP Class Library Project Folder>\bin\x64\Debug\<UWP

UWP textbox cursor functionality on down key

不问归期 提交于 2019-12-24 08:01:02
问题 I have several Textboxes in a UWP project. If I press the down key inside a textbox, the cursor will jump to the end of the text; unless the cursor is at the very front. If the cursor is at the front of the text, pressing down does nothing. Is there a way to make the cursor jump to the end of the text upon a down key press even if the cursor is at the very front? I made a new UWP project to test this and the above functionality is the default. 回答1: You can use SelectionStart and

Unable to send an invitation of the folder using Microsoft.Graph Api

牧云@^-^@ 提交于 2019-12-24 07:36:13
问题 I am trying to send an invitation for the folder but I keep getting this error: An invalid operation was attempted while processing this request. My code is: var graphclient = AuthenticationHelper.GetGraphServiceClient(); List<DriveRecipient> recpient = new List<DriveRecipient>() { new DriveRecipient { Email = "abcd@hotmail.com", Alias="abcd" } }; // var info = await graphclient.Me.Request().GetAsync(); var invite = graphclient.Me.Drive.Root.ItemWithPath("trying").Invite(recpient, false, new

Displaying super- and subscript

左心房为你撑大大i 提交于 2019-12-24 07:34:34
问题 I'm currently working on an UWP app which also deals with math. Therefore i parse formulae and display them as inlines in a RichTextBlock . As you can imagine, I also want to display sub- and superscription - but I haven't yet found a way to do so. I know, there is something called BaselineAlignment in WPF, but it seems that this is not supported in UWP. I'm currently also about to figure out how to best display fraction lines and roots. I've thought about building my own control for this

UWP: Compute text height in a RichTextBlock gives weird results

一个人想着一个人 提交于 2019-12-24 07:30:48
问题 I need a reliable method to get the height of the text contained in a RichTextBlock , even before it is actually drawn on the scene. Using the normal Measure() method produces a weird result, as it can be seen in the MVCE: https://github.com/cghersi/UWPExamples/tree/master/MeasureText (I want to keep fiexed the width, and measure the final height, but the result of DesiredSize is far different from the actual height!!). For this reason, I found a rough method (mentioned here https:/

UWP App Error on creating

十年热恋 提交于 2019-12-24 07:04:00
问题 I am trying to create a UWP App with visual Studio. I keep getting this error message. Is there something i can do to fix this? 回答1: This is most probably a corrupted Visual Studio installation. Let's just do a Visual Studio repair, or run the installer and make sure you update the "Universal Windows App Development Tools". Update: (if that does not help) Well, I looked into this in more detail: so the root cause is most probably that Microsoft removed Application Insights, but during an