xamarin.forms

Xamarin.Forms Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror' when trying to create MasterDetailPage

余生颓废 提交于 2021-01-24 12:11:03
问题 I am having problems with my Xamarin.Forms not wanting to load anymore, it keeps giving me the error message Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'. My code ATM is MainPage.xaml.cs: public partial class MainPage : MasterDetailPage { public MainPage() { InitializeComponent(); } } MainPage.xaml <?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx

Xamarin.Forms Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror' when trying to create MasterDetailPage

妖精的绣舞 提交于 2021-01-24 12:09:52
问题 I am having problems with my Xamarin.Forms not wanting to load anymore, it keeps giving me the error message Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'. My code ATM is MainPage.xaml.cs: public partial class MainPage : MasterDetailPage { public MainPage() { InitializeComponent(); } } MainPage.xaml <?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx

Xamarin.Forms Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror' when trying to create MasterDetailPage

感情迁移 提交于 2021-01-24 12:09:38
问题 I am having problems with my Xamarin.Forms not wanting to load anymore, it keeps giving me the error message Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'. My code ATM is MainPage.xaml.cs: public partial class MainPage : MasterDetailPage { public MainPage() { InitializeComponent(); } } MainPage.xaml <?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx

Xamarin.Forms Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror' when trying to create MasterDetailPage

时光总嘲笑我的痴心妄想 提交于 2021-01-24 12:09:13
问题 I am having problems with my Xamarin.Forms not wanting to load anymore, it keeps giving me the error message Unable to cast object of type 'System.RuntimeType' to type 'Mono.Debugger.Soft.TypeMirror'. My code ATM is MainPage.xaml.cs: public partial class MainPage : MasterDetailPage { public MainPage() { InitializeComponent(); } } MainPage.xaml <?xml version="1.0" encoding="utf-8" ?> <MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx

How to use attached properties such as Grid.Row, AbsoluteLayout.LayoutFlags to OnPlatform tag in Xamarin Forms

纵饮孤独 提交于 2021-01-24 10:49:06
问题 For now, I tried with below code <StackLayout> <StackLayout.Grid.Row> <OnPlatform ... /> </StackLayout.Grid.Row> </StackLayout> And also <StackLayout> <Grid.Row> <OnPlatform ... /> </Grid.Row> </StackLayout> Nothing works 回答1: Use StaticResource i.e: <AbsoluteLayout> <StackLayout AbsoluteLayout.LayoutBounds="{StaticResource ContainerPosition}" AbsoluteLayout.LayoutFlags="None"> <BoxView AbsoluteLayout.LayoutBounds="{StaticResource BoxPosition}" Color="Maroon"/> </StackLayout> <AbsoluteLayout

Button with background color, ripple effect renders in upper left corner only

社会主义新天地 提交于 2021-01-24 08:19:38
问题 Button with background color when clicked ripple effect renders abnormally with a shaded or faded rectangular selection area in upper left corner only instaed of the whole button area. VS 2017, Xamarin 4.10.10.2, Xamarin.Andriod SDK 8.3.3.2 回答1: An issue has been opened related to this problem Android Buttons shows ripple effect only on the upper left area of the button on Samsung devices when changing/setting the buttons background color and it seems affecting Samsung devices running Android

Run background task every X amount of time

浪尽此生 提交于 2021-01-21 08:54:32
问题 I would like to start a service that once in awhile on all platforms has checked is there a notification to appear or not. Is there any nuget to connect all platforms or some examples? 回答1: You can use the Device.StartTimer(TimeSpan minutes) method to start a background task that will repeat after the given time span. Here is a code example: var minutes = TimeSpan.FromMinutes (3); Device.StartTimer (minutes, () => { // call your method to check for notifications here // Returning true means

Lottie Animation doesn't appear on Android device - Xamarin Forms

不问归期 提交于 2021-01-20 12:10:23
问题 I'm using VS 2019 xamarin Forms, I recently watched some videos about how to use lottie animations and looks pretty simple. I'm doing every step but when I run the app the animation never appears. Package Com.Airbnb.Lottie.Forms was added to all app projects (it's crossplatform) Then added Com.Airbnb.Android.Lottie to the Android app (first I tried without it, didn't work either) This is the code <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms

Lottie Animation doesn't appear on Android device - Xamarin Forms

眉间皱痕 提交于 2021-01-20 12:06:07
问题 I'm using VS 2019 xamarin Forms, I recently watched some videos about how to use lottie animations and looks pretty simple. I'm doing every step but when I run the app the animation never appears. Package Com.Airbnb.Lottie.Forms was added to all app projects (it's crossplatform) Then added Com.Airbnb.Android.Lottie to the Android app (first I tried without it, didn't work either) This is the code <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms

How to bind a CommandParameter in a ContentView to an element in the parent ContentPage in Xamarin Forms

孤街浪徒 提交于 2021-01-19 10:22:51
问题 I have a parent ContentPage with several ContentViews in separate files. I am trying to pass as reference an element in the parent ContentView to a CommandParameter in one of the views and below is the code I have thus far. This is parent ContentPage <?xml version="1.0" encoding="utf-8" ?> <ContentPage x:Class="Acies.NitroT.Views.Shop.RefillPage" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:base="clr-namespace:Acies.NitroT