windows-10-universal

WebRTC for UWP, new RTCPeerConnection() doesn't complete execution

白昼怎懂夜的黑 提交于 2019-12-07 18:03:10
问题 I’m trying to create a Universal Windows Platform application that uses WebRTC, but my code never executes past the first new RTCPeerConnection. I have been looking at the open source project WebRTC for UWP (blog post with links to git repos) and managed to build and run the ChatterBox VoIP client example. Since I am new to both UWP programming and WebRTC (and .NET, C# and Windows programming in general) the examples I have been looking at in the repos mentioned above have been much too

UWP: Can't create a new VPN profile

血红的双手。 提交于 2019-12-07 17:43:55
问题 I'm trying to create a new VPN profile in a universal windows app. I am using this api. There are two documented ways to do that. AddProfileFromXmlAsync and AddProfileFromObjectAsync. Unfortunately for me none of them work correctly. When I'm using AddProfileFromXmlAsync I get all the time error AccessDenied. I saw on this thread that somehow it could be related to bad xml syntax but I get the same error also when I am using the exact xml in the Microsoft example. AddProfileFromObjectAsync

ContentDialog not aligning to center on UWP

回眸只為那壹抹淺笑 提交于 2019-12-07 17:20:45
问题 From what I know, ContentDialog 's default behavior should be to have it centered on PC and aligned to top on mobile, but in my case I have it aligned to top even on PC and I don't understand what's going on. I'm creating it using code-behind, and this is a snippet of the code that I'm using: // Creates the password box var passwordBox = new PasswordBox {IsPasswordRevealButtonEnabled = true, Margin = new Thickness(5)}; // Creates the StackPanel with the content var contentPanel = new

How can I create a Universal Windows Application using TypeScript in Visual Studio 2015?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 10:58:40
问题 Visual Studio 2015 does not have a project template for Universal Windows Applications in TypeScript. I would like to know how to get started. 回答1: In Visual Studio 2015.1, this works out-of-the-box. In 2015.2 and 2015.3 however, you have to work around a TypeScript installation bug. See second part for a how-to. With the Universal SDK installed, go to New Project -> JavaScript -> Windows -> Blank App (Universal Windows) . Simply change main.js to main.ts and you're set. If you're running

How to invoke javascript in WebView Windows 10 UWP?

南笙酒味 提交于 2019-12-07 07:48:28
I am trying to load a javascript in WebView to do some calculations and get the output in a string. I tried to use following code string htmlFragment = "<html><head><script type='text/javascript'>" + "function doubleIt(incoming){ " + " var intIncoming = parseInt(incoming, 10);" + " var doubled = intIncoming * 2;" + " document.body.style.fontSize= doubled.toString() + 'px';" + " return doubled.toString());" + "};" + "</script></head><body>" + "<div id = 'myDiv'>I AM CONTENT</div></body></html>"; htmlView.NavigateToString(htmlFragment); htmlView.LoadCompleted += async(s1,e1) => { string result =

How to add my protocol into default programs in windows 10?

ぐ巨炮叔叔 提交于 2019-12-07 07:08:38
问题 Hi I have a new protocol URL:myTest, how can I add it in windows 10 so I can see it listed in default programs? Shall I add it in registry? How/Where exactly could I do that? I want to associate a program with this protocol. 回答1: The registration for "Default Programs" is in the registry under SOFTWARE\RegisteredApplications. If your application fits one of the client types then you should point your RegisteredApplications value to Software\Clients\%ClientType%\%YourCanonicalName%

Transparent tile but colored icon for the Windows Store

筅森魡賤 提交于 2019-12-07 06:25:59
问题 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

Can't deploy to HoloLens emulator

天大地大妈咪最大 提交于 2019-12-07 01:24:46
问题 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

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

此生再无相见时 提交于 2019-12-07 01:01:18
问题 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)

How can I detect when scrolling has started in a ListView on Windows 10 UWP?

一个人想着一个人 提交于 2019-12-06 17:09:29
问题 I'd like to subscribe to an event which tells me that scrolling has started in a ListView and get the direction of scrolling. Is there any way to do this in Windows 10 UWP API? Thanks 回答1: You should first obtain the ScrollViewer inside the ListView and then subscribe to its DirectManipulationStarted event. However, to get the direction of the scrolling can be tricky. I'd suggest you to have a look at the new Windows Composition API where there's a way to use ExpressionAnimation to link the