win-universal-app

“The debugger was unable to find the registration for the target application.”

强颜欢笑 提交于 2019-12-13 03:01:20
问题 I have a UWP app (from a Xamarin.Forms app) which debugs fine on the computer. But when I try to debug on a phone, I get the following error: Unable to debug Windows Store app '....exe'. The debugger was unable to find the registration for the target application. If the problem persists, try uninstalling and then reinstalling this application. The app does get installed on the phone and can be executed there. But I can't debug it with Visual Studio. Meanwhile, the error I see in the error

NotificationHub send notification in registered tag UWP

无人久伴 提交于 2019-12-13 02:34:14
问题 Is there a way to send a notification with UWP app through NotificationHub? In many tutorials they send notifications with a C# console application using Microsoft.Azure.NotificationHubs Nuget package. I cannot install this package in a UWP app. Can i specifically send a notification to a tagged device that i register with RegisterNativeAsync? 回答1: Per my experience, I think the simple way for sending notification in a UWP app is to using Notification Hub REST APIs via HttpClient, without the

TCP Send multiple message without closing connection

删除回忆录丶 提交于 2019-12-13 02:27:28
问题 Hi guys i have build an app for android to get the GPS coordination and i want to send the data to my C# UWP server through TCP. As concept i have opened a socket and i want to send multiple messages without closing the socket. socket = new java.net.Socket("192.168.2.10", 9999); printwriter = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true); printwriter.println("message1"); printwriter.println("message2"); printwriter.println("message3"); printwriter

Labeled TextBox in Windows Universal App

走远了吗. 提交于 2019-12-13 02:24:51
问题 I'm trying to realize a labeled TextBox in a windows universal app using C# and XAML , but I did not get the value of the TextBox in return, just empty string. The code of my generic.xaml for it looks like this: <Style TargetType="template:LabeledTextBox"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="template:LabeledTextBox"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Text="

Can I develop a Windows Universal Application using DirectX and C#

雨燕双飞 提交于 2019-12-13 02:16:10
问题 I've seen that there is a template to do so in Visual C++, but not in C#. Have I to stick to C++ to develop a Direct X (Universal) application ?? Can I use C#? If so, how? 回答1: Have I to stick to C++ to develop a Direct X (Universal) application? Technically, you can use the DirectX in .NET platform by using the interop technology. SharpDX has done such kind of things for you and you can easily use the DX in you .NET project including the Window 8.1 and Windows Phone 8.1 app project. However,

Location tracking when app is in background in Windows 10?

江枫思渺然 提交于 2019-12-13 02:08:08
问题 I am new to Windows 10 and currently working on Location based apps. My requirement is to track user locations for a particular time interval and send data to the server every 10 minutes. Can someone suggest whether this is possible in Windows 10 or not? I am not aware of this. Update I also want to do the above in when the app is in the background also.I tried below code protected override async void OnNavigatedTo(NavigationEventArgs e) { if (e.NavigationMode == NavigationMode.New) { var

select each ListViewItem and apply a modification in a universal App

隐身守侯 提交于 2019-12-13 01:40:21
问题 I have a ListView that displays those informations,what I want is to display a different background for my button If I get fav = 1,and a different image if I get aime = 1,: JSON format: { success: 1, total: 2, locals: [ { id_local: "82", fav: 0, aime: 0, aimepas: 0, all_like: "2", all_dislike: "0", }, { id_local: "83", fav: 1, aime: 1, aimepas: 0, all_like: "5", all_dislike: "0", } ] } and this is my code: Uri = "URL"; var http = new HttpClient(); http.MaxResponseContentBufferSize = Int32

Cannot set HttpBaseProtocolFilter.AllowUI to true on Windows 10 Mobile

前提是你 提交于 2019-12-13 01:35:14
问题 I have a UWP app that's using client a certificate for SSL authentication. The certificate is stored in user store, the app is declaring "Shared User Certificates" capability in the manifest, I can see the certificate in collection returned by CertificateStores.FindAllAsync . The app works fine on Windows 10 Desktop -- I can set HttpBaseProtocolFilter.AllowUI = true and the app shows a confirmation dialog before the private key is used. However, when I run the same exact code on Windows 10

flipview in a universal windows app

邮差的信 提交于 2019-12-13 01:28:42
问题 I want to add a flipview in my code like this image, but I get this result in all pages when I slide in every page: this is my code, <FlipView x:Name="flipView1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="642"> <FlipView.ItemTemplate> <DataTemplate> <Grid Style="{Binding HorizontalAlignment, ElementName=grid}" ScrollViewer.HorizontalScrollBarVisibility="Auto" Background="Transparent" > <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*" />

uwp CalendarDatePicker set date format

怎甘沉沦 提交于 2019-12-13 00:57:39
问题 I'm trying to set a date format for the CalendarDatePicker for globalisation purposes. I tried this: endDate = (FindName("cdpEnd") as CalendarDatePicker); endDate.DateFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern; endDate.Date = workObject.EndCal; But it gave me the following exception: System.ArgumentException: The parameter is incorrect. formatTemplate at Windows.UI.Xaml.Controls.CalendarDatePicker.put_DateFormat(String value) at App1.PageWorkObject.rootGrid_Loaded