xamarin.uwp

How can I create a custom renderer for DatePicker for UWP?

邮差的信 提交于 2020-03-25 18:40:49
问题 I'm trying to create a custom DatePicker renderer for UWP but I'm getting a compile error. Trying to get a CalenderDatePicker instead of the normal DataPicker. I am getting the same error whether I try one or the other. My code is: CustomControl.cs namespace myNameSpace.CustomControl { public class CustomDatePicker : DatePicker { } } And my CustomDatePickerRenderer.cs in the UWP folder [assembly: ExportRenderer(typeof(CustomDatePicker), typeof(CustomDatePickerRenderer))] namespace myNameSpace

The package “apppxbundle” is taking a long time to process. Unable to push update to windows store [UWP] [ Xamarin.Forms]

蓝咒 提交于 2020-01-25 07:46:39
问题 I've been at this for past 2 days and I'm getting weird errors from the store. I'm trying to upload an update to my application "CoManga" via the store and it's not working out. I'm working on Xamarin.Forms (UWP) and before making the appxbundle, I made sure and "associated my app with CoManga" from my developer account. All the information over there matches and should work fine without any issues. Then I made a release of my UWP app, got the bundle and I tried to upload it to UWP. It said

Xamarin Forms - Prevent Keyboard from Showing on Entry Focus in UWP, Android, iOS

倖福魔咒の 提交于 2020-01-16 19:07:10
问题 In Xamarin.Forms, I can prevent keyboard from popping up when Entry view receives focus by creating custom renderers and using ShowSoftInputOnFocus for Android and InputView for iOS. But what can I use to prevent it in UWP? 回答1: prevent keyboard from popping up when Entry view receives focus UWP has direct API support to hide and show the InputPane. You could invoke TryHide method to hide keyboard. For xamarin you could use DependencyService to approach. For more please refer the following

Xamarin Forms - Prevent Keyboard from Showing on Entry Focus in UWP, Android, iOS

假如想象 提交于 2020-01-16 19:05:44
问题 In Xamarin.Forms, I can prevent keyboard from popping up when Entry view receives focus by creating custom renderers and using ShowSoftInputOnFocus for Android and InputView for iOS. But what can I use to prevent it in UWP? 回答1: prevent keyboard from popping up when Entry view receives focus UWP has direct API support to hide and show the InputPane. You could invoke TryHide method to hide keyboard. For xamarin you could use DependencyService to approach. For more please refer the following

Xamarin Forms - Prevent Keyboard from Showing on Entry Focus in UWP, Android, iOS

南楼画角 提交于 2020-01-16 19:05:27
问题 In Xamarin.Forms, I can prevent keyboard from popping up when Entry view receives focus by creating custom renderers and using ShowSoftInputOnFocus for Android and InputView for iOS. But what can I use to prevent it in UWP? 回答1: prevent keyboard from popping up when Entry view receives focus UWP has direct API support to hide and show the InputPane. You could invoke TryHide method to hide keyboard. For xamarin you could use DependencyService to approach. For more please refer the following

How can I add a UWP target to an existing Xamarin Forms project?

余生长醉 提交于 2020-01-11 02:49:51
问题 I have an existing Xamarin Forms app that's setup to build for Android and iOS. I want to add a UWP target so I can see how the app performs on Windows. I assume I can do this without having to create a new UI for Windows? I'm using Visual Studio 2015 on Windows 10. 回答1: You should be able to following this Xamarin documentation page Old xamarin.com link old documentation page It consists of a couple of steps, everything is in Visual Studio as UWP is not supported in Xamarin Studio: Add a

Certificate Pinning on UWP

三世轮回 提交于 2020-01-06 05:37:24
问题 We have a Xamarin.Forms project that is currently compiled for Android , iOS and UWP using .NET Standard 2.0 for the shared project. The communications is performed through a WCF Service Contract. In order to pin the certificate we implemented the following code as per examples. This works correctly on Android and iOS after making sure that are using the necessary HttpClient implementations under their project properties. ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

Xamarin forms relative layout position stacklayout at bottom

元气小坏坏 提交于 2020-01-04 03:13:30
问题 I would like to position a Stacklayout at the bottom on top of an image using a relative layout using Xamarin forms using xaml only. The xaml pretty much looks like this. <RelativeLayout> <Image /> <StackLayout Orientation="Horizontal"> <Label Text="Dark Mode" /> <Switch /> <Label Text="Light Mode" /> </StackLayout> </RelativeLayout> What X and Y constraints should my StackLayout have so that it is positioned on top of the image and at the bottom of it.Also added an image which describes the

multiple selection on custom picker C# UWP

允我心安 提交于 2019-12-25 12:52:12
问题 I've been looking on forums and internet about a custom picker on C#, I have a picker already functional, but some of my research throw me that you are only able to select 1 item of the custom Picker, this is the code im using to deploy the picker. Picker <custom:CustomPicker x:Name="pickerCategories" ItemsSource="{Binding listCategoriesName}" SelectedIndex="{Binding SelectedCategory}" SelectedIndexChanged="pickerCategories_SelectedIndexChanged" Grid.Column="1" BackgroundColor="White"/> the

Displaying pdf files from internet in Xamarin.Forms UWP

梦想与她 提交于 2019-12-25 01:06:56
问题 I have a Xamarin.Forms application supporting only UWP. I need to be able to load pdf files from the web and display the content in my application. I cannot find a solution that would work with UWP and handle pdf files that are not part of a project. 回答1: For your requirement, you could refer this code sample that custom a WebView and load pdf file with pdf.js host web application. [assembly: ExportRenderer(typeof(CustomWebView), typeof(CustomWebViewRenderer))] namespace DisplayPDF.WinPhone81