windows-10-universal

Using StreamSocketListener in the background with SocketActivityTrigger

拈花ヽ惹草 提交于 2020-01-16 09:57:14
问题 In order to make a UWP App act like an HTTP server, restup does the job. But the problem is that it does not provide an HTTP server that works even after the app is closed. In order to achieve this, a background task with SocketActivityTrigger has to be created and the socket ownership of StreamSocketListener has to be transferred to the socket broker so that the background task is triggered when a request comes (as explained here). And here is an example for an app that connects to a socket

Font style is not affected in Mobile view in UWP

回眸只為那壹抹淺笑 提交于 2020-01-15 09:43:27
问题 I am working on windows universal platform app for windows-10.I designed my whole app and use a two font style in whole application. 1)Utsaah 2)Raavi both font family properly working in desktop and tablate view.But when i run my app in emulator (Mobile view) that time both fonts are not affacted to my textblock means default font of mobile initialize so please suggest me a solution . I just attached screenshot also code. Code: <Grid HorizontalAlignment="Stretch"> <Grid.ColumnDefinitions>

UWP - Get path to user download folder

南笙酒味 提交于 2020-01-13 12:55:32
问题 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? 回答1: Is that what you need? string localfolder = ApplicationData.Current.LocalFolder.Path; var array = localfolder.Split('\\'); var username =

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

守給你的承諾、 提交于 2020-01-13 08:50:47
问题 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..!! 回答1: Try to add it to Dependencies section into .appinstaller

UWP Manifest issue / restricted capability / inputForegroundObservation

人走茶凉 提交于 2020-01-11 13:19:27
问题 I'm trying to follow this StackOverflow article, referring to this similar article on StackOverflow, and this from the UWP Windows Dev Center. In my manifest XML, the <Package> tag was updated to include xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" and also IgnorableNamespaces="uap mp wincap rescap" . My <Capabilities> section looks like this: <Capabilities> <Capability Name="internetClient" /> <rescap:Capability Name=

Change MetroLog folder and file name in Windows 10 UWP app

…衆ロ難τιáo~ 提交于 2020-01-07 03:26:06
问题 Wondering if anybody has experience using MetroLog on a Windows 10 UWP app. I am not too familiar with it and just started using it. For the purpose of not duplicating code and creating a long post, I followed this walk through step by step. The question I have is a simple one though. With this guide and the default implementation of MetroLog, the log files are stored in a folder named "MetroLog" within my app local folder. Furthermore, the file name is just named "log - 20170206.log" I want

Access music files UWP -KnownFolders.MusicLibrary.GetItemsAsync() doesnt return anything

醉酒当歌 提交于 2020-01-07 01:23:11
问题 Hey i have the following : var fileList = await KnownFolders.MusicLibrary.GetItemsAsync(); It doesn't return any files and i have files in the Music folder. I also have : <Capabilities> <Capability Name="internetClient" /> <Capability Name="removableStorage" /> <Capability Name="documentsLibrary" /> <Capability Name="MusicLibrary" /> <Capability Name="HomeGroup" /> <Capability Name="RemovableDevices" /> I dont know why it doesnt return any files/ exception ? Any suggestions ? I also tried

Expand/Collapse Grid

ε祈祈猫儿з 提交于 2020-01-06 19:58:08
问题 I am trying to Collapse/Expand Grid with animation and while it's animating move all other components accordingly. So far I used <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="GridName"> <DiscreteObjectKeyFrame KeyTime="0:0:0.59" Value="0,0,0,0" /> (...more frames) </ObjectAnimationUsingKeyFrames > But the effect is far from acceptable (animation not smooth). I was wandering if the new controls has such options? I also came across some Expanding

Detect Universal App at Runtime in PCL

旧时模样 提交于 2020-01-06 16:53:13
问题 Is there any way to detect that a main application is a Universal App (W10) from a Portable Class Library? Thanks 回答1: Out-of-the-box I do not think the functionality you are asking for is available in PCL, but here is a suggestion involving reflection that you might want to try. It is adapted to the PCL Profile (328) you are using, involving .NET 4 and Silverlight 5. The GetPlatformName method needs to be somewhat adjusted if you want to for example switch to PCL profiles 111 and 259, since

Are apps launched by URI in a UWP app also sandboxed?

社会主义新天地 提交于 2020-01-06 08:13:59
问题 I inherited a UWP app and was asked to add a button to launch a 3rd party application. The 3rd party application is built with Qt and has an exe as the main program that launches a second exe that acts as a service. The UWP app is to be run on tablets running Windows 10. I created an installer that adds registry values for the URI for the 3rd party application so I can do URI activation (LaunchUriAsync method). If I change the target of the URI to a different application it works fine, so I