windows-10-universal

How to print in UWP app?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 16:59:59
问题 I am trying to print out something from my UWP app. Basically I've used a WebViewBrush to draw some data on to some FrameworkElement 's (Windows.UI.Xaml.Shapes.Rectangle) - and I want to print one of these Rectangles on each page (one rectangle per page) I was really hoping someone could provide a very simple example of how printing in UWP works. I have tried it myself and I am happy to provide my code, but there are honestly thousands of lines - all of which I've taken from the Microsoft

UWP - Get path to user download folder

房东的猫 提交于 2019-12-05 14:18:52
I have been looking for a little while now and am not finding much help via MSDN resources and others. My predicament is simple: my app needs a base directory to the Downloads folder. I am aware of the DownloadsFolder class however that is not suiting my needs currently. How do I get the current user's Download folder path in a Windows Universal App? Is that what you need? string localfolder = ApplicationData.Current.LocalFolder.Path; var array = localfolder.Split('\\'); var username = array[2]; string downloads = @"C:\Users\" + username + @"\Downloads"; This will result C:\Users\username

Transparent tile but colored icon for the Windows Store

故事扮演 提交于 2019-12-05 11:22:33
I want to have transparent square tile for my app, but in the Store it should have green background behind same icon. Is there any way to achieve that? In 8.1 we had (still have) 300x300 "App tile icon" which is used for the Store I believe, but now it seems store using image from Package.appxmanifest, and even if I explicitly set non-transparent image for "Store Logo", it doesn't work. Question is: is that at all possible to have transparent tile for start screen but solid-color background icon in the Store? Yes, "App tile icon" is used only on Windows Phone 8.1 or earlier and in practice for

Windows 10 kiosk mode, no Apps available

北城余情 提交于 2019-12-05 07:25:46
问题 I tried to install Windows 10 kiosk mode for the user " kiosk " without success, the assigned access app selection list is empty. Here is what I have done: I used the " administrator " account and created an Universal Windows App with Visual Studio 2015 (I just compiled the empty project, I do not added code). I built an App package and installed the app from/for the "kiosk" account. Back in the " administrator " account, I tried to set up the assigned access. I added the user " kiosk " and

Hololens Apps Will No Longer Build - Cites Metadata file missing and c-Sharp.firstpass not found

梦想与她 提交于 2019-12-05 06:14:38
I have followed the exact steps Microsoft lists under multiple projects within their Microsoft Holographic - Academy tutorials. I completed them all, and all of them worked just fine from creation to export and testing. This is using Unity3D / C# which gets compiled into a Visual Studio Solution (sln) file. After completing those, I went on to build my own app - which built just fine as well. No problem! Now when I try to build - I get a strange error that the c-Sharp.firstpass file (the exported/cross-compiled dll from what I understand) can not be found. Now even the projects that built

'App installer failed to install package dependencies. Ask the developer for Microsoft.VCLibs.140.00

*爱你&永不变心* 提交于 2019-12-05 06:03:24
screenshot of the error I am getting this error:" App installer failed to install package dependencies.Ask the developer for Microsoft.VCLibs.140.00.Debug package " while side loading .appxbundle file via App installer in windows10 client machine, however the same was sideloaded in my (developer) machine without any issue. I am using Visual Studio 2017 for development. Couldn't find anything relevant in google. Somebody help..!! Try to add it to Dependencies section into .appinstaller file: <Dependencies> <Package Name="Microsoft.VCLibs.140.00" Publisher="CN=Microsoft Corporation, O=Microsoft

Can't deploy to HoloLens emulator

自古美人都是妖i 提交于 2019-12-05 05:54:33
Just created default project Holographic DirectX11 App (Universal Windows) in VS2015 Update 2 with HoloLens emulator installed and hit F5. HoloLens emulator starts loading, but at some point The emulator is unable to connect to the device operating system: The emulator is unable to determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality might be disabled. I can start emulator from Hyper-V Manager and connect to it, but the screen is not responding to mouse clicks and stuck with start menu (same picture in emulator window if I start it from

Is there a way to run a Xamarin UWP project without deploying every time

和自甴很熟 提交于 2019-12-05 03:08:38
Do I always have to click to deploy a UWP app before running it? Thats two steps and I'd like to perform just one. I've just created a Blank Xaml App (Xamarin.Forms Portable) New Project from the list of Cross-Platform, Windows, Visual C# Templates in Visual Studio 2015 update 2. There are projects for Droid, iOS, and UWP (Universal Windows) as well as a few others. I set the UWP app as the startup project and attempted to run it (by clicking the green arrow on my local machine or hitting F5), but I received an error saying that I need to deploy first. If I right click the project and then

How to create informative toast notification in UWP App

人盡茶涼 提交于 2019-12-04 20:06:38
问题 In my app, I want to inform user when particular action had performed, like record updated successfully or new record added, but there's not inbuilt control to that can display such information. Is there anything similar to Android Toast.makeText for UWP? 回答1: Yes, UWP has Toast Notifications :) Here is sample code to display simple notification: private void ShowToastNotification(string title, string stringContent) { ToastNotifier ToastNotifier = ToastNotificationManager.CreateToastNotifier(

How to create draggable pin in windows 10 to give pick location functionality?

情到浓时终转凉″ 提交于 2019-12-04 19:03:50
I am working on MapControl in Windows 10 and I want to allow the user to drag the pin and when the user drops the pin want to get latitude and longitude of that position and get the location address by using API.I added Map Icon using following code MapControl map = frameworkElement as MapControl; map.MapServiceToken= "my service token"; BasicGeoposition councilPosition = new BasicGeoposition() { Latitude = Convert.ToDouble(Info.GetType().GetRuntimeProperty("LATITUDE").GetValue(councilInfo, null)), Longitude = Convert.ToDouble(Info.GetType().GetRuntimeProperty("LONGITUDE").GetValue(councilInfo