uwp

How to play video and audio from separate URLs in UWP app?

坚强是说给别人听的谎言 提交于 2019-12-11 08:53:30
问题 I'm trying to create a video player for a UWP Desktop App. I not able to play a video and audio from different URLs. I have given my code below but I haven't given audio and video URLs. I'm using a Xampp local server for my case. Please Help Me. My MainPage.xaml.cs : namespace my_video_player { public sealed partial class MainPage : Page { MediaPlayer video_player; MediaSource mediaSource_video; MediaSource mediaSource_audio; public MainPage() { this.InitializeComponent(); video_player = new

How Can I Use XMLDocument.SelectNodes in UWP

安稳与你 提交于 2019-12-11 08:52:08
问题 I am a beginner in programming UWP applications, but I know c#. My question is, how could I use selectnodes in a UWP applications since the definition doesn't exist... How would i work around this issue? Thanks. Here is my code if needed XmlDocument responseXML = new XmlDocument(); responseXML.LoadXml(response); string innerText = responseXML.SelectNodes("//maininfo").Item(0).InnerText; responseXML.LoadXml(innerText); info1 = responseXML.GetElementsByTagName("upnp:info1").Item(0).InnerText;

Error 0x80080209 when signing appx file for Windows UWP

混江龙づ霸主 提交于 2019-12-11 08:45:40
问题 I have build a Windows 10 UWP cordova application, and are now trying to sign it. I already have a certificate that is used elsewhere (to sign .net assemblies) so I thought I would use the same one for this application signing. When I use the signtool.exe, I get the following error.. SignTool Error: An unexpected internal error has occurred. Error information: "Error: SignerSign() failed." (-2146958839/0x80080209) Looking in the event log as suggested here, I see no errors just 2 information

What's the difference between Properties/DisplayName element and VisualElements@DisplayName attribute in .appxmanifest file

人盡茶涼 提交于 2019-12-11 08:35:23
问题 In following appxmanifest, what is the difference between Package/Properties/DisplayName element and Package/Applications/Application/VisualElements@DisplayName <?xml version="1.0" encoding="utf-8"?> <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest"> <Identity Name="" Version="" Publisher="" /> <Properties> <DisplayName></DisplayName> <!-- this --> <PublisherDisplayName></PublisherDisplayName> <Logo></Logo> </Properties> <Prerequisites> <OSMinVersion></OSMinVersion>

[UWP]: Alarm notification audio when system volume is set to off

谁说我不能喝 提交于 2019-12-11 08:33:50
问题 Hi all :) We are coding an app for the local fire departements since they plan to remove one of two pager frequencies and replace it with an app (they have two alert channels then, classic pager and mobile phone). In case of an incoming alert, the phone creates an alarm-scenario ToastNotification with audio. So far so good, the problem is that the audio file isn't played if the user has set the system master volume to zero. I know it's not possible so far to change the system volume from an

Bubbling up / redirect event to parent ScrollViewer

放肆的年华 提交于 2019-12-11 08:26:14
问题 I hope someone have a hint/solution to solve this problem in a better and more performant way. I'm writting an Windows UWP app with contains a ScrollViewer with a grid. In this grid I have two StackPanels embedded in a ScrollViewer. Each StackPanel has a list of images in a vertical orientation. The StackPanel is as height as all images are together so there is no vertical scrollbar as it should be. On the other hand the images are wider then the StackPanel and the horizontal scrollbar is

UWP and Binding to static class in different project

橙三吉。 提交于 2019-12-11 08:11:34
问题 I have a static class in a common project where I have all my property with all my text (for example, all my titles) I want to know how I can bind my TextBlock Text to this value. I tried Text={x:Static...} but Static is not found. Thanks 回答1: {x:static...} is not present in UWP. You can still do something similar, but the class itself must not be static. The properties in the class can be static but you need to create an instance of that class. So you will need to ask for a change in the

DateTime.Now based timer not tracking correctly over multiple instances

徘徊边缘 提交于 2019-12-11 08:04:24
问题 this is my first proper C# application that I wrote to help me at work (I'm on helpdesk for an MSP with a passing interest in scripting and code) and I'm using UWP just to make it look pretty without much effort. Our time tracking software is a web service written in ASP.Net so generally the built in timer is fine but it won't survive a browser refresh, so I wrote my own that fits into the format that we need for our tickets. I have taken some code from other Stack questions and my dad (A C#

MVVM Validation in UWP

烈酒焚心 提交于 2019-12-11 08:01:22
问题 In the last week I've been trying to apply MVVM Pattern to Universal Windows Plataform, in the most elegant possible way, that means apply SOLID principles and some popular design patterns. I've been trying to reproduce this exercise from this link: http://www.sullinger.us/blog/2014/7/4/custom-object-validation-in-winrt Also the link is for Windows 8 apps it also applies to Windows 10 apps according to MSDN answer at this forum: https://social.msdn.microsoft.com/Forums/windowsapps/en-US

Winphone project type is not supported in Visual studio 2017

不羁的心 提交于 2019-12-11 07:58:58
问题 I have an existing xamarin native project and It has myproj.iOS myproj.Droid myproj.WinPhone I uninstalled my visual studio 2015 and installed Visual studio 2017 Now in the solution explorer I can see it clearly says myproj.WinPhone (incompatible) I am aware Microsoft is pushing for UWP but I still want to do as I was doing earlier like supporting windows 8.1 etc.. Is it possible to downgrade this to 2015 so that I can still do myproj.WinPhone ? Or is there anyother way that will solve this