uwp

How play a .mp3 (or other) file in a UWP app?

爱⌒轻易说出口 提交于 2019-12-18 22:35:12
问题 I try this: PlayMusic = new MediaElement(); PlayMusic.AudioCategory = Windows.UI.Xaml.Media.AudioCategory.Media; PlayMusic.Source = new Uri(@"C:\Users\UserName\Desktop\C:\Users\user\Desktop\Kill The Alarm - Begin Again.mp3"); PlayMusic.Play(); No more error messages appear on the display (try catch runs clean through). Sorry for the short description... I can read and understand English very well but it is difficult for me to talk and write. 回答1: Every Windows Store App has three folders. A

How play a .mp3 (or other) file in a UWP app?

做~自己de王妃 提交于 2019-12-18 22:34:51
问题 I try this: PlayMusic = new MediaElement(); PlayMusic.AudioCategory = Windows.UI.Xaml.Media.AudioCategory.Media; PlayMusic.Source = new Uri(@"C:\Users\UserName\Desktop\C:\Users\user\Desktop\Kill The Alarm - Begin Again.mp3"); PlayMusic.Play(); No more error messages appear on the display (try catch runs clean through). Sorry for the short description... I can read and understand English very well but it is difficult for me to talk and write. 回答1: Every Windows Store App has three folders. A

UWP Printing from Windows app directly without bringing Print Dialog

血红的双手。 提交于 2019-12-18 22:22:05
问题 Does POS printer just support Epson printers? (related to https://msdn.microsoft.com/en-us/library/windows/apps/mt426652) How to send a document directly to the printer without showing Print Dialog? 回答1: ESC/POS is a command system created by Epson used across a wide range of POS printer systems, aimed at avoiding incompatible command sets by providing universal applicability. Most modern printers support ESC/POS. So, for your first question, I think the answer is no. This POS printer API can

Get Keyboard state in Universal Windows Apps

最后都变了- 提交于 2019-12-18 20:52:10
问题 I want to detect a key combination (e.g. Control-A ) in a Windows App. The KeyDown event handler has information about the last key pressed. But how do I find out whether the Control key is pressed as well? 回答1: You can use CoreVirtualKeyStates.HasFlag(CoreVirtualKeyStates.Down) to determine is the Ctrl key has been pressed, like this - Window.Current.CoreWindow.KeyDown += (s, e) => { var ctrl = Window.Current.CoreWindow.GetKeyState(VirtualKey.Control); if (ctrl.HasFlag(CoreVirtualKeyStates

Xamarin Forms UWP - Display PDF

落爺英雄遲暮 提交于 2019-12-18 18:02:38
问题 Please, help me and tell me what am I missing. My goal is to display simple PDF file (stored locally for example) in the WebView control . Can I bind path of the file to the Source property of the WebView? Or what is the correct way to show PDF in UWP? P.S. and if the only option is to do like here - how must I add pdf.js to my project?? 回答1: My goal is to display simple PDF file (stored locally for example) in the WebView control. If you want to display pdf in WebView control, then the

Xamarin Forms UWP - Display PDF

巧了我就是萌 提交于 2019-12-18 18:02:12
问题 Please, help me and tell me what am I missing. My goal is to display simple PDF file (stored locally for example) in the WebView control . Can I bind path of the file to the Source property of the WebView? Or what is the correct way to show PDF in UWP? P.S. and if the only option is to do like here - how must I add pdf.js to my project?? 回答1: My goal is to display simple PDF file (stored locally for example) in the WebView control. If you want to display pdf in WebView control, then the

Xamarin Forms UWP - Display PDF

妖精的绣舞 提交于 2019-12-18 18:02:11
问题 Please, help me and tell me what am I missing. My goal is to display simple PDF file (stored locally for example) in the WebView control . Can I bind path of the file to the Source property of the WebView? Or what is the correct way to show PDF in UWP? P.S. and if the only option is to do like here - how must I add pdf.js to my project?? 回答1: My goal is to display simple PDF file (stored locally for example) in the WebView control. If you want to display pdf in WebView control, then the

Xamarin Form - How To store an image in PDF or JPEG Format in UWP

◇◆丶佛笑我妖孽 提交于 2019-12-18 17:34:47
问题 hello friends i am developing the DMS application in which user can scan the document or images through scanner and upload on server. For scanning purpose i am refered this link it works perfectly..:) Now problem is ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) this Method accepts the image format which is supported by scanner. my scanner only support the .BMP format but i want to store an image in PDF or JPEG Format in given folder name. Else please suggest any

Xamarin Form - How To store an image in PDF or JPEG Format in UWP

你。 提交于 2019-12-18 17:34:10
问题 hello friends i am developing the DMS application in which user can scan the document or images through scanner and upload on server. For scanning purpose i am refered this link it works perfectly..:) Now problem is ImageScanner.ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) this Method accepts the image format which is supported by scanner. my scanner only support the .BMP format but i want to store an image in PDF or JPEG Format in given folder name. Else please suggest any

Why can't I use {x:Bind {RelativeSource Self}} in a data template?

て烟熏妆下的殇ゞ 提交于 2019-12-18 17:00:41
问题 If I use {x:Bind {RelativeSource Self}} in a data template, I get the following error while compiling: Object reference not set to an instance of an object. The idea is to pass the templated object to a property like a command parameter. Here is an example MainPage.xaml : <Page x:Class="XBindTest5.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:XBindTest5" xmlns:d="http://schemas.microsoft