uwp

Listening to broadcasts when server and client are on the same machine

人走茶凉 提交于 2019-12-19 08:53:46
问题 After spending better part of the night, I haven't been able to make it work. Here is what I'm doing: This is a network game that is hosted by one participant and joined by other players. The host himself acts as a player too. User clicks "Host" button to start advertising on UDP. Other users can see the list of all available hosts and select one to join. As a starter, I downloaded NetworkHelper library to study how networking work in UWP. This library provides UDPManager and UDPParticipant

Can't use Syncfusion assembly in project

馋奶兔 提交于 2019-12-19 08:14:29
问题 I tried to use this code, to include Syncfusion Charts to the project xmlns:charting="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.UWP" but I get an error: Undefined type "SfChart" in XML namespace "clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.UWP" If I use standard using everything ok, but app package is too big, I don't need all controls from Syncfusion SDK. xmlns:charting="using:Syncfusion.UI.Xaml.Charts" 回答1: It works fine with the following

Set Icon on SecondaryCommand of CommandBar

帅比萌擦擦* 提交于 2019-12-19 08:04:25
问题 I have a command bar width secondary commands: <CommandBar> <AppBarButton Icon="Back" Label="Back" Click="AppBarButton_Click"/> <AppBarButton Icon="Stop" Label="Stop" Click="AppBarButton_Click"/> <AppBarButton Icon="Play" Label="Play" Click="AppBarButton_Click"/> <AppBarButton Icon="Forward" Label="Forward" Click="AppBarButton_Click"/> <CommandBar.SecondaryCommands> <AppBarButton Icon="Like" Label="Like" Click="AppBarButton_Click"/> <AppBarButton Icon="Dislike" Label="Dislike" Click=

UWP change CalendarDatePicker language in runtime

依然范特西╮ 提交于 2019-12-19 04:20:16
问题 I have an application that changes UI in runtime. Here is my code for changing language: public void SwitchLanguage(SupportedLanguage language) { // Check if passed argument is different from current language if (CurrentLanguage != language.Type) { // Set the new current language CurrentLanguage = language.Type; // Override tha application primary language ( it will automatically save the language preference ) Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = language

Distribute UWP App to App Center (aka Mobile Center) using VSTS Task

╄→гoц情女王★ 提交于 2019-12-19 04:08:37
问题 I'm currently working together with Microsoft on a case where one of your UWP Apps is crashing after start. After a lot of debugging around msbuild I recognized that the crash only occurs when the resulting appxbundle file is distributed over Microsoft App Center (aka Mobile Center). This is also only the case when the appxbundle is uploaded to App Center with the VSTS built in task "App Center distribute". When I upload the appxbundle manually using the App Center Portal it all works fine,

How to create a IDirect3DSurface from an IBuffer or byte array in UWP

依然范特西╮ 提交于 2019-12-19 04:04:10
问题 I want to create a video from a few RenderTargetBitmap s in UWP. I am doing that by using MediaClips . From RenderTargetBitmap i can get an IBuffer or byte array of pixels. To create a MediaClip I need either an image file or an IDirect3DSurface . Creating an image just to create a clip is very expensive, so I thought of using IDirect3DSurface . How can I do this? I have tried this: RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap.RenderAsync

How to create a IDirect3DSurface from an IBuffer or byte array in UWP

霸气de小男生 提交于 2019-12-19 04:04:05
问题 I want to create a video from a few RenderTargetBitmap s in UWP. I am doing that by using MediaClips . From RenderTargetBitmap i can get an IBuffer or byte array of pixels. To create a MediaClip I need either an image file or an IDirect3DSurface . Creating an image just to create a clip is very expensive, so I thought of using IDirect3DSurface . How can I do this? I have tried this: RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap.RenderAsync

Attach Image/ImageBrush from code behind

跟風遠走 提交于 2019-12-19 03:16:33
问题 I'm trying to add an Image as the background of a UserControl. Depending on the value of a variable I need to change that background but whatever the path or Uri format I use, the background does not change. I've seen lots of questions here in stackoverflow but none fixes my single problem. I let the code below: if (callback.liveUvis.ContainsUVI(uvi)) { this.Status.Text = "LIVE"; ImageBrush imgB = new ImageBrush(); BitmapImage btpImg = new BitmapImage(); btpImg.UriSource = new Uri(@"///IMG//

WSHttpBinding in .NetStandard or .NET core

南笙酒味 提交于 2019-12-19 03:15:35
问题 I want to integrate NMVS protocol in my application which is providing wsdl files for testing which is written sample code in .net framework library. I want to test it in .netstandard, .netcore or UWP app but wsdl files only support to "WSHttpBinding" which is not supported in .netstandard, .net core and UWP. <wsdl:binding name="WSHttpBinding_ISinglePackServices" type="ns:ISinglePackServices"> WSHttpBinding binding = new WSHttpBinding(); binding.Security.Mode = SecurityMode.Transport; binding

UWP with Desktop Bridge package build automation with MSbuild

淺唱寂寞╮ 提交于 2019-12-19 03:12:15
问题 Does anyone know how to automate UWP with Desktop Bridge (Desktop Extension) package build (.appxupload/.appxbundle) by using MSbuild tool? I've got the setup like on the following blog. For the simple UWP app (without Desktop Extension) I’m able to this with the following command: msbuild UWP.sln /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms=”x86|x64|ARM”;UapAppxPackageBuildMode=StoreUpload However, when I try it on Package.wapproj I’ve got a bunch of errors. For instance,