xamarin.forms

Navigation back from LockScreen

这一生的挚爱 提交于 2020-06-27 05:57:09
问题 i have a carousel page and on each of them i have a button and the user is able to lock the page. For that i am using dependency service and that works fine, however if i want to come back from the second page i am redirected to the first page and the page sort of "freezes". I need to be able to return to the second page of the carousel page. Can you help please? I have tried INavigation but i am getting a null exception. 2.I have also tried just override OnBackButton but that gets me back to

Include CSS within WebView in Xamarin Forms with a Source URL (iOS & Android)

南笙酒味 提交于 2020-06-27 02:18:37
问题 I am trying to include some custom css within a webview on xamarin forms so the website being used can be customized with css styles, changing colors or other css style classes. I have done this before using native code in Xcode and Android Studio, however this project is using xamarin forms and visual studio. I believe what we need to do is include css within a custom webview renderer for android and ios. (would not be surprised if there was an easier way). I have tried various methods being

Include CSS within WebView in Xamarin Forms with a Source URL (iOS & Android)

牧云@^-^@ 提交于 2020-06-27 02:16:56
问题 I am trying to include some custom css within a webview on xamarin forms so the website being used can be customized with css styles, changing colors or other css style classes. I have done this before using native code in Xcode and Android Studio, however this project is using xamarin forms and visual studio. I believe what we need to do is include css within a custom webview renderer for android and ios. (would not be surprised if there was an easier way). I have tried various methods being

Include CSS within WebView in Xamarin Forms with a Source URL (iOS & Android)

删除回忆录丶 提交于 2020-06-27 02:15:08
问题 I am trying to include some custom css within a webview on xamarin forms so the website being used can be customized with css styles, changing colors or other css style classes. I have done this before using native code in Xcode and Android Studio, however this project is using xamarin forms and visual studio. I believe what we need to do is include css within a custom webview renderer for android and ios. (would not be surprised if there was an easier way). I have tried various methods being

Application icon is not displayed in Xamarin.Forms Android app

不羁岁月 提交于 2020-06-26 06:28:27
问题 I cannot figure out why my Xamarin.Forms Android app has the default robot icon. Here is the structure I have now: And here is what I have in "MainActivity.cs": [Activity(Label = "My App Name", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity And here is what I have in "AndroidManifest.xml": <application

Draw spline(smooth path) with SkiaSharp lib on Xamarin.Forms?

你说的曾经没有我的故事 提交于 2020-06-26 06:24:39
问题 I'm making app with using Xamarin forms. I want to draw a smooth path (spline) with SKPath, but I am unable to find a simple way to achieve this. Skiasharp does not support it currently unless I make path smoothly myself. Thanks. 回答1: SkiaSharp supports cubic Bezier curves. So, what you can do, is divide the spline into segments (points determine segment endpoints), and draw each segment using a cubic Bezier curve. To do this, you need to introduce two control points between each point in

How to Dispose a ViewModel after Popping a page with Xamarin.Forms?

随声附和 提交于 2020-06-26 02:46:54
问题 What I would like to do is unsubscribe from events at the moment the ViewModel is no longer needed. I tried implementing IDisposable but nobody calls Dispose(), not Xamarin.Forms nor Prism.Forms. We have an app created with Xamarin.Forms. We use Prism.Forms to do MVVM. When navigating to a new page (push on stack) Prism.Forms wires the ViewModel to the Page. When navigating back (pop from stack) the ViewModel gets GarbageCollected after a while. The problem is however that at a point in time

Release build but debugging enabled

会有一股神秘感。 提交于 2020-06-25 07:43:17
问题 I'm trying to export an Android app. I've selected "Release | ARM". It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled". How can that be, given that it's a release build? How do switch off debugging? 回答1: I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project. To fix this, do the following: Go into the

Release build but debugging enabled

丶灬走出姿态 提交于 2020-06-25 07:43:01
问题 I'm trying to export an Android app. I've selected "Release | ARM". It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled". How can that be, given that it's a release build? How do switch off debugging? 回答1: I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project. To fix this, do the following: Go into the

How to use custom font (any external font) as embedded resource in Xamarin Forms?

人盡茶涼 提交于 2020-06-23 13:59:36
问题 I want to use custom external font (Monotype Corsiva) as Embedded resource in my Xamarin Forms project. I am using Xamarin.Forms version 4.5.0.617 I have added "MonotypeCorsiva.ttf" font file in my project and set Build action: Embedded resource in Solution Explorer. I have added [assembly: ExportFont("MonotypeCorsiva.ttf", Alias = "MyFont")] in App.xaml.cs I am using it inside a Label in my XAML page: <Label Text="Hello" FontFamily="MonotypeCorsiva" FontSize="Medium" /> Am I doing everything