xamarin.uwp

LottieUWP embedded into Xamarin.Forms

假装没事ソ 提交于 2021-02-10 14:53:53
问题 I made a custom renderer for LottieUWP [assembly: ExportRenderer(typeof(LottieView), typeof(LottieViewRenderer))] namespace Gorilla.Forms.UWP.Source.Renderer.Lottie { public class LottieViewRenderer : ViewRenderer<LottieView, LottieAnimationView> { private LottieAnimationView AnimationView; protected override void OnElementChanged(ElementChangedEventArgs<LottieView> e) { base.OnElementChanged(e); if (Control == null) { if (e.NewElement == null) return; AnimationView = new LottieAnimationView(

Azure Mobile Services LoginAsync method not working with Microsoft Auth Token

偶尔善良 提交于 2021-02-08 07:57:25
问题 I have successfully been able to get an access_token (or authenticationToken for Microsoft tokens) using the client side authentication in my Xamarin forms App. I am able to get further user information (email, name, etc.) using the same access token. Now, when I try to pass that token to my Azure Mobile Service backend, I get a 401 error. Here is my code: private async System.Threading.Tasks.Task<string> MSGetUserInfo(Account account) { // Reference: http://graph.microsoft.io/en-us/docs

Azure Mobile Services LoginAsync method not working with Microsoft Auth Token

余生长醉 提交于 2021-02-08 07:57:21
问题 I have successfully been able to get an access_token (or authenticationToken for Microsoft tokens) using the client side authentication in my Xamarin forms App. I am able to get further user information (email, name, etc.) using the same access token. Now, when I try to pass that token to my Azure Mobile Service backend, I get a 401 error. Here is my code: private async System.Threading.Tasks.Task<string> MSGetUserInfo(Account account) { // Reference: http://graph.microsoft.io/en-us/docs

Xamarin forms: tooltip in windows app

一笑奈何 提交于 2021-02-07 09:27:23
问题 I am building an app using Xamarin forms PCL. My app will work on android, ios, windows 10 and windows 8.1. I need to implement a tooltip control on tap event for windows os only. I tried tooltip like this- if(Device.OS == TargetPlatform.Windows) { var tapGestureRecognizer1 = new TapGestureRecognizer(); tapGestureRecognizer1.Tapped += TapGestureRecognizer1_Tapped1; icon1.GestureRecognizers.Add(tapGestureRecognizer1); } private void TapGestureRecognizer1_Tapped1(object sender, EventArgs e) {

UWP Export sql script to file

半腔热情 提交于 2021-01-29 21:00:37
问题 I want to export sql script to file, steps from SQL Server: SQL Server -> Right Click database-> Tasks -> Gnerate Scripts -> Choose the table-> ... I used package Microsoft.SqlServer.SqlManagementObjects and Microsoft.SqlServer.Smo.dll . But for these two package, it will throw error ILC0005 Error while I build with Relase. Is there any way to overcome ILC0005 Error or to export sql script. 来源: https://stackoverflow.com/questions/60842454/uwp-export-sql-script-to-file

UWP Export sql script to file

喜夏-厌秋 提交于 2021-01-29 18:30:09
问题 I want to export sql script to file, steps from SQL Server: SQL Server -> Right Click database-> Tasks -> Gnerate Scripts -> Choose the table-> ... I used package Microsoft.SqlServer.SqlManagementObjects and Microsoft.SqlServer.Smo.dll . But for these two package, it will throw error ILC0005 Error while I build with Relase. Is there any way to overcome ILC0005 Error or to export sql script. 来源: https://stackoverflow.com/questions/60842454/uwp-export-sql-script-to-file

Xamarin UWP app size is too big? how to reduce?

て烟熏妆下的殇ゞ 提交于 2021-01-28 08:37:42
问题 I have built a xamarin forms app and android size 17mb using proguard, full linking. However UWP size is 76 mb. I am already using configuration as in the screenshot below. I am support x86, x64 and arm architectures on both platforms. in android i create separate packages per abi. thats why 17mb is each abi size. but I couldnt find a similar option in UWP. it is size of bundle. is there a way to provide 3 installers? Beside that why is the size too large and how can i optimize it further? PS

Is it possible to stop the first Entry getting Focus in a ScrollView in Xamarin Forms

心已入冬 提交于 2020-08-23 12:18:31
问题 In my application I have the following situation: <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:conv="clr-namespace:NumericTextBoxTest.Converters;assembly=NumericTextBoxTest" xmlns:numericTextBox="clr-namespace:Syncfusion.SfNumericTextBox.XForms;assembly=Syncfusion.SfNumericTextBox.XForms" x:Class="NumericTextBoxTest.MainPage"> <ScrollView> <StackLayout> <Entry/> <Entry/> <Entry/> <Entry/> <Entry/> <Entry/> <Entry/>

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

耗尽温柔 提交于 2020-03-25 18:41:26
问题 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