uwp

Problems Setting FlipView Items source using Data Virtualization

本秂侑毒 提交于 2020-01-17 14:18:03
问题 This is a follow up from my previous question (UWP Problems Setting GridView Items source using x:Bind). In that case I was using the random access file data source from Mirosoft's Data virtualization sample and the grid was never being populated. The problem there was that I was not raising the property changed event. The grid now works well. My problem now is that instead of a grid view I am trying to use the data source in a flip view control. The data source does get initialized, the

Cast video to TV using MediaPlayerElement

空扰寡人 提交于 2020-01-17 07:59:14
问题 I have the following XAML <MediaPlayerElement x:Name="EmbeddedPlayer" AreTransportControlsEnabled="True" HorizontalAlignment="Stretch" IsDoubleTapEnabled="True" DoubleTapped="OnEmbeddedPlayerDoubleTapped"> </MediaPlayerElement> According to this official documentation, I should be able to use the available Cast button to cast the video to my TV. The Movies & TV app can does that: When I clicked the cast button in that app, it lists the available targets. But when I do the same thing for my

Check if another device is alive on the network based on its IP-address

隐身守侯 提交于 2020-01-17 05:38:27
问题 I'm trying to write a simple UWP IoT App that is to run on Windows 10 IoT Core on a Raspberry Pi. The App need to test if another device is currently alive on the local network. All the Apps knows about this other device is its ip address. I see from other SO questions that Ping is not supporten because ICMP is not supported on WinRT. I assume this also the case on UWP? I guess I could create a socket and try an connect to for example port 80 and unless a time-out error is received then that

Building adaptive layout with RelativePanel

旧街凉风 提交于 2020-01-17 05:37:06
问题 hello I want that when the vision is less than 720 such as a phone, I would like the grid 2 went below the grid 1. I tried through its panel and adaptive trigger like this: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <RelativePanel > <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="VisualStateGroup"> <VisualState x:Name="NarrowView"> <VisualState.StateTriggers> <AdaptiveTrigger MinWindowWidth="0" /> </VisualState.StateTriggers> <VisualState.Setters>

LocalSettings breaking on unhandled XAML exception

微笑、不失礼 提交于 2020-01-17 05:06:58
问题 I am having some trouble figuring out why, when I try to define LocalSettings to a field so I can access it from multiple methods, it performs a break during a debug run within App.g.i.cs at the following code: #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break(); }; #endif Here is my actual class: public sealed partial class MainPage : Page {

Xamarin Forms: How to add multiple init codes at a time in App.xaml.cs for UWP?

大兔子大兔子 提交于 2020-01-16 17:31:06
问题 I have init codes of both circle image and pop up image in App.xaml.cs. Only the first code is working, the code after Xamarin.Forms.Forms.Init is not working. My current code is adding below: //ImageCircle var rendererAssemblies = new[] { typeof(ImageCircleRenderer).GetTypeInfo().Assembly }; Xamarin.Forms.Forms.Init(e, rendererAssemblies); //Popup Rg.Plugins.Popup.Popup.Init(); Xamarin.Forms.Forms.Init(e, Rg.Plugins.Popup.Popup.GetExtraAssemblies()); Now image circle is working and pop up

How to manually scroll using ItemsRepeater

旧时模样 提交于 2020-01-16 17:11:18
问题 I'm using ItemsRepeater . And using a ScrollViewer to scroll left/right. For some reason, I have to disable ScrollViewer ' HorizontalScrollMode , and add Left/Right Button to manual scroll. The xaml is <Grid> <muxc:ItemsRepeaterScrollHost Margin="12" Loaded="ItemsRepeaterScrollHost_Loaded"> <ScrollViewer x:Name="sss" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" VerticalScrollMode="Disabled" HorizontalScrollMode="Disabled"> <muxc:ItemsRepeater x:Name=

Including UWP project in WPF project raises runtime errors

帅比萌擦擦* 提交于 2020-01-16 16:50:28
问题 Project I work on need to show UWP control from UWP library inside of WPF window. Here is the document page on which I had based my work (check section for adding custom UWP control): https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost#add-a-custom-uwp-control Had setup WPF window and it shows standard UWP controls (like button) at the runtime just fine. However, when I include UWP project, WPF window throws exception at start (at the moment of

Including UWP project in WPF project raises runtime errors

梦想与她 提交于 2020-01-16 16:50:13
问题 Project I work on need to show UWP control from UWP library inside of WPF window. Here is the document page on which I had based my work (check section for adding custom UWP control): https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost#add-a-custom-uwp-control Had setup WPF window and it shows standard UWP controls (like button) at the runtime just fine. However, when I include UWP project, WPF window throws exception at start (at the moment of

In UWP saving HTML5 Audio stream to mp3 file

自闭症网瘾萝莉.ら 提交于 2020-01-16 13:18:32
问题 I currently have a radio streaming App in the Windows 10 Store. Now I want to give my users the possibility to record the current stream to a mp3 File. Does anyone of you have a suggestion on how to save the Audio Stream? I can't find the property or event that gives me the bytes to save them. I'm using the Windows.Media.Playback.Mediaplayer class. Thanks in advance Christian 回答1: In general you could not get Audio Stream from Mediaplayer directly. However, you could monitor the audio via