Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 76418 articles
Browse latest View live

Preventing screen sleep on certain pages

$
0
0

Hi!

I have an app with a barcodescanner. When I open this barcodescanner (which is simply a contentpage), I want to prevent the screen going off/to sleep.

Does someone know how to prevent the screen sleep in Xamarin Forms (Android & iOS)? And if possible, only for one contentpage?


Accesibilty on a button

$
0
0

Hi guys!
Could you help me, please? I need to add accesibility support on my app, and I am trying with a simple button following the guide.
It does not work, Talkback or VoiceOver always read "Close" instead of the text I introduced on AutomationProperties.Name property.

This is my code simplified a little:

<Button Text="Close" IsVisible="..." Command="..." 
    AutomationProperties.IsInAccessibleTree="True" AutomationProperties.Name="This is a button" />

Am I doing something wrong?

App Specific Password question

$
0
0

Lately (with the newest VS for Mac), every time I publish an app to the app store/testflight, it asks me for my Apple ID and app specific password.
Fine I log in and go generate a password.
Then i enter it and submit the app, everybody happy...
...Until next time...every single time it asks me for the same apple id and specific password.

Of course i forgot to write it down and i have to generate a new one. How can i get it to save and stop asking?? Has anybody figured it out??

Thanks!

How to connect to Firebase crashlytics using Xamarin.Firebase.Crashlytics package for Android

$
0
0

There is no official documentation for this, For iOS below code seems working, Please provide alternative code for Android.

Firebase.Core.App.Configure();      
Crashlytics.SharedInstance.Init();
Crashlytics.SharedInstance.SetCrashlyticsCollectionEnabled(true);
Crashlytics.SharedInstance.SendUnsentReports();

CollectionView Custom Render iOS Masonry Style

$
0
0

Hi, I'm trying to do a Custom Render for a CollectionView in Xamarin Form for the iOS project, but I haven't found a way to do it, I'm trying that my collectionview looks like Masonry Style, I did it in Android.

Some of the question I found give a microsoft link for WaterfallCollectionLayout, but the thing is what they explain there is just for Xamarin iOS not for cross platforms project, could you give a code example of how to do it?

This is how it looks like in Android

Frame IsVisible doesn't work when binding

$
0
0

Hi,

Have a very strange issue - if I set Frame IsVisible to true directly, it works fine, but if I bind it then it won't react to value being set.
I've tested same bindable property with Label in the same XAML and it works fine. This is on Android, haven't tried iOS yet.

XAML sample:

<Frame IsVisible="{Binding ShowFrame}" />
<Label Text="Label" IsVisible="{Binding ShowFrame}" />

So in example above when ShowFrame is set to true Label will show, but Frame not. If I set IsVisible="True" for Frame it works as well.

Any ideas?

When you open keyboard, actionButton (back) is overlaping the display (watch)

$
0
0

Hi, do you know how to fix (or hide) actionButton when you open keyboard? I have simply input and actionbutton, when I want type in input, keyboard shows up but action button is overlaping display, see screenshot:

Use XAML element as a parameter for a Command

$
0
0

Hi,

I defined a Picker in my View. Works good, but it's not really user-friendly, because there's no possibility to define a down arrow in the Picker parameters. So I did something like this to display one :

<Grid HeightRequest="50">
    <Picker x:Name="mySlugPicker" Grid.ColumnSpan="4"  Title="Sélectionnez votre serveur" ItemsSource="{Binding ServerList}"  ItemDisplayBinding="{Binding Value}" SelectedItem="{Binding SelectedItem}" TextColor="Black" TitleColor="Black" BackgroundColor="White"/>
    <Image Grid.Column="4" Source="down_arrow.png">
        <Image.GestureRecognizers>
            <TapGestureRecognizer NumberOfTapsRequired="1" Command="{Binding OpenPicker}" CommandParameter="{Binding mySlugPicker}"/>
        </Image.GestureRecognizers>
    </Image>
</Grid>

I defined the property "x:Name" to my Picker and set it as a CommandParameter for my command.

And in my ViewModel, I have something like this to interact with my Picker :

public Command<Picker> OpenPicker { get; }

public ViewModel()
{
    OpenPicker = new Command<Picker>(TriggerPickerOpening);
}

private void TriggerPickerOpening(Picker picker)
{
    picker.Focus();
}

But when I'm launching my app, I have a NullReferenceException.

What an I doing wrong?


FirebaseAuth not set to an instance of an object

$
0
0

FirebaseAuth not set to an instance of an object when trying to use FirebaseAuth.Instance.SignInWithEmailAndPasswordAsync(email, password)

I stopped getting the error after downgrading Firebase Core and Firebase Auth to 60.1142.1 but sign in still doesnt work. Here's my code:

public async Task<string> LoginWithEmailPassword(string email, string password) { try { var user = await FirebaseAuth.Instance.SignInWithEmailAndPasswordAsync(email, password); var token = await user.User.GetIdTokenAsync(false); return token.Token; } catch (FirebaseAuthInvalidUserException e) { e.PrintStackTrace(); return ""; } }

When I use a breakpoint, it stops after executing var user = await FirebaseAuth.Instance.SignInWithEmailAndPasswordAsync(email, password); and doesn't do anything.

EDIT: Works on physical device, error on emulator

Pass the List value from one cs to another cs

$
0
0

Hi Techie,

How to pass return the list of value from one cs to another cs (ex: Secondpage.xaml to Firstpage.Xaml.cs)

xamarin forms resize listview (inside stacklayout) after each keyboard entry - from code behind

$
0
0

-> xamarin forms resize listview (inside stacklayout) after each keyboard entry - from code behind

(would like this cross platform if it is possible?)

Using SearchBar to allow user to search for products of wines... when text is changed the displayed results are updated correctly but I want to change the size of the ListView to only show results removing any empty white space.

So for example in attached picture entry 'Wine ' returns 12 results, which shows all....but 'Wine 1' only 4 results. So I would like the listview to end after 'wine 12'(from the results) instead the opacity covers the rest of the screen.

Have tried some examples such as:

https://stackoverflow.com/questions/46588861/xamarin-forms-listview-inside-stacklayout-how-to-auto-resize-the-listview
but still cant get it going does anyone see what I am doing wrong thank you

<NavigationPage.TitleView>
        <StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal">
            <SearchBar x:Name="SearchBar" TextChanged="SearchBar_TextChanged" HorizontalOptions="FillAndExpand" Placeholder="Search..." PlaceholderColor="Gray" TextColor="White" VerticalOptions="StartAndExpand"/>
        </StackLayout>
    </NavigationPage.TitleView>

 private void SearchBar_TextChanged(object sender1, TextChangedEventArgs e1)
        {
            StackSearchResults.IsVisible = true;
            int numberOfProducts = 0;
            SearchListView.ItemsSource = GetProducts(out numberOfProducts, e1.NewTextValue);

            SearchListView.RowHeight = 50;

            SearchListView.PropertyChanged += (object sender, System.ComponentModel.PropertyChangedEventArgs e) =>
            {
                if (e.PropertyName == "ItemsSource")
                {
                    try
                    {
                        if (SearchListView.ItemsSource != null)
                        {
                            SearchListView.HeightRequest = numberOfProducts * 50;
                        }
                    }
                    catch (Exception ex)
                    {

                    }
                }
            };
}

Custom Volume Settings for Cross Media Manager on playing the video

$
0
0

Hi Every one,
please help me, Can we control the audio volume of the Media Manager independently without affecting the device audio volume?

I created Asp.net Web Api, when I tested it using Postman, not working.

$
0
0

I created Asp.net Web Api, when I tested it using Postman, not working because only "The requested resource does not support http method 'GET". I have no idea. it was working before. please help me for this problem, I put code below.

    // GET: api/Login/5
    [HttpGet]
    [ActionName("XAMARIN_Login")]
    public HttpResponseMessage Xamarin_Login(string userName, string password)
    {
        var user = db.Users.Where(x => x.UserName == userName && x.Password == password).FirstOrDefault();
        if (user == null)
        {
            return Request.CreateResponse(HttpStatusCode.Unauthorized, "Please Enter valid UserName and Password");
        }
        else
        {
            var customerid = user.Id;


            return Request.CreateResponse(HttpStatusCode.Accepted, customerid);
        }
    }

Xamarin.Forms profiling?

$
0
0

When my app starts Visual Studio freezes, and only reports lots of meaningless Library loading and unloading nonsense that doesn't make any sense.
Here's a clip of it for the sake of seeing if there is anything useful in this info.

02-09 18:59:55.323 D/Mono    (26923): Loading reference 2 of Syncfusion.SfBadgeView.XForms.Android.dll asmctx DEFAULT, looking for Syncfusion.SfBadgeView.XForms, Version=18.4451.0.41, Culture=neutral, PublicKeyToken=null
02-09 18:59:55.323 D/Mono    (26923): Assembly Ref addref Syncfusion.SfBadgeView.XForms.Android[0x7088f364c280] -> Syncfusion.SfBadgeView.XForms[0x7088f364c380]: 2
02-09 18:59:55.323 D/Mono    (26923): Requesting loading reference 2 (of 8) of Syncfusion.SfCalendar.XForms.Android.dll
02-09 18:59:55.323 D/Mono    (26923): Loading reference 2 of Syncfusion.SfCalendar.XForms.Android.dll asmctx DEFAULT, looking for Syncfusion.SfCalendar.XForms, Version=18.4451.0.41, Culture=neutral, PublicKeyToken=null
02-09 18:59:55.323 D/Mono    (26923): Assembly Ref addref Syncfusion.SfCalendar.XForms.Android[0x7088f364c780] -> Syncfusion.SfCalendar.XForms[0x7088f364c880]: 2
02-09 18:59:55.324 D/Mono    (26923): Requesting loading reference 2 (of 10) of Syncfusion.SfCarousel.XForms.Android.dll
02-09 18:59:55.324 D/Mono    (26923): Loading reference 2 of Syncfusion.SfCarousel.XForms.Android.dll asmctx DEFAULT, looking for Syncfusion.SfCarousel.XForms, Version=18.4451.0.41, Culture=neutral, PublicKeyToken=null
02-09 18:59:55.324 D/Mono    (26923): Assembly Ref addref Syncfusion.SfCarousel.XForms.Android[0x7088f364c980] -> Syncfusion.SfCarousel.XForms[0x7088f364ca80]: 2
02-09 18:59:55.324 D/Mono    (26923): Requesting loading reference 2 (of 11) of Syncfusion.SfComboBox.XForms.Android.dll
02-09 18:59:55.324 D/Mono    (26923): Loading reference 2 of Syncfusion.SfComboBox.XForms.Android.dll asmctx DEFAULT, looking for Syncfusion.SfComboBox.XForms, Version=18.4451.0.41, Culture=neutral, PublicKeyToken=null
02-09 18:59:55.324 D/Mono    (26923): Assembly Ref addref Syncfusion.SfComboBox.XForms.Android[0x7088f364cb80] -> Syncfusion.SfComboBox.XForms[0x7088f364cc80]: 2
02-09 18:59:55.324 D/Mono    (26923): Requesting loading reference 2 (of 4) of Syncfusion.SfComboBox.XForms.dll
02-09 18:59:55.324 D/Mono    (26923): Loading reference 2 of Syncfusion.SfComboBox.XForms.dll asmctx DEFAULT, looking for Syncfusion.Core.XForms, Version=18.4451.0.41, Culture=neutral, PublicKeyToken=null
02-09 18:59:55.324 D/Mono    (26923): Assembly Ref addref Syncfusion.SfComboBox.XForms[0x7088f364cc80] -> Syncfusion.Core.XForms[0x7088a9fd9880]: 4
02-09 18:59:55.324 D/Mono    (26923): Requesting loading reference 1 (of 15) of Syncfusion.SfDataGrid.XForms.Android.dll

I am trying to figure out what is causing a severe slowdown in the startup of my app, It seems to lockup and freeze for a while when starting. I know that the release version should load faster, but I'd rather identify the cause of the slow down.
It looks like there is a profiler that you can download and run (so long as you're using the enterprise version of VS) I'd rather not have to buy an enterprise license just to profile my apps startup sequence.

I know a lot of this is the emulator, and more of it is the debug code, but I would still like to get a handle on just how much overhead is being wasted, and ways I could speed up the startup sequence.

I have 2 32gb sticks in my laptop, is there anyway to run the Android Emulator entirely in a RamDrive? (Is that even still a thing? Did I just inadvertently show my age?)
Also side note, VS, and the emulator are running from an M.2 drive, so there's not much more I can do to eliminate any latency from the drive speed lol!

Thanks!

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Gen

$
0
0

I am developing an android app in xamarin.forms many of times my app stop working and show this message. i don't get it what is this?

_**My Json Looks like: **_

[{"id":15,"name":"Complete Winter Skincare Pack","description":"

  • Upto 35% Off at Caffeine Carnival
  • Complimentary Face Care Shots, with all orders
  • Complimentary Body & Face Care Shots, on orders 799+

","maincategoryid":"3","categoryid":"13","subcategoryid":"6","finalprice":2104.0},{"id":14,"name":"SkinKraft- India Only Customized Skincare For Every Skin Issue.","description":"

 Product Regimen Trusted By 3,00,000+ Indians For Their Skin Type & Issue

  • Cleanses skin while maintaining the pH balance of the skin
  • Repairs and nourishes the skin barrier, making it stronger
  • Potent ingredients to address specific skin issues

","maincategoryid":"3","categoryid":"13","subcategoryid":"6","finalprice":989.0},{"id":13,"name":"Home Care Service","description":"The home care service market was valued atThe home care service market was valued at","maincategoryid":"3","categoryid":"12","subcategoryid":"5","finalprice":3000.0}]

My code in c# is :
var content = "";
HttpClient client = new HttpClient();
var RestURL = UserSettings.api + "/api/McProducts/GetMcProducts?maincategoryid=2";
client.BaseAddress = new Uri(RestURL);
client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage response = await client.GetAsync(RestURL);
content = await response.Content.ReadAsStringAsync();
List Items = JsonConvert.DeserializeObject<List>(content);
foreach (Products c in Items)
{
string product_name = c.name.ToString().ToUpper();
int prod_length = Convert.ToInt32(product_name.Length);
if (prod_length > 30)
{
prod_length = 29;
}
product_name = product_name.Substring(0, prod_length - 1);
string price = "₹ " + c.finalprice + "/-";
source5.Add(new Products
{
image = UserSettings.software_url + "/productImages/image2/" + c.id + ".jpg",
name = product_name,
id = c.id,
finalprice = price
});
}
cvcategory2.ItemsSource = source5;

Please give some suggestion.


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocatio

$
0
0

Hi I got this error when i navigate to a page from a list view in xamarin forms . I can't find the actual problem can any one help he to find where the problem is happening from this report . am using MVVMLight
[0:] Error NavigateTo BenWorkTasksPage. Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. at Xamarin.Forms.Label.FontStructPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x0010e] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x0014b] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x0005f] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Setter.Apply (Xamarin.Forms.BindableObject target, Boolean fromStyle) [0x000a4] in <filename unknown>:0 at Xamarin.Forms.Style.ApplyCore (Xamarin.Forms.BindableObject bindable, Xamarin.Forms.Style basedOn) [0x0001e] in <filename unknown>:0 at Xamarin.Forms.Style.Xamarin.Forms.IStyle.Apply (Xamarin.Forms.BindableObject bindable) [0x0003e] in <filename unknown>:0 at Xamarin.Forms.VisualElement+MergedStyle.SetStyle (IStyle implicitStyle, IStyle classStyle, IStyle style) [0x00111] in <filename unknown>:0 at Xamarin.Forms.VisualElement+MergedStyle.set_Style (IStyle value) [0x0000d] in <filename unknown>:0 at Xamarin.Forms.VisualElement+<>c.<.cctor>b__211_6 (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x0010e] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x0014b] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x0005f] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0 at IWSM.XamarinApp.Views.BenWorkTasksPage.InitializeComponent () [0x0af0c] in <filename unknown>:0 at IWSM.XamarinApp.Views.BenWorkTasksPage..ctor (IWSM.Shared.DataModels.WorkTaskDataModel wtdm) [0x00008] in D:\Shamnad_TFS_Workspace\IWSM.XamarinApp\IWSM.XamarinApp\IWSM.XamarinApp\Views\BenWorking\BenWorkTasksPage.xaml.cs:31 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:644 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00016] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:650 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00089] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:635 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:663 at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62 at IWSM.XamarinApp.Common.NavigationService+<NavigateTo>d__15.MoveNext () [0x00173] in D:\Shamnad_TFS_Workspace\IWSM.XamarinApp\IWSM.XamarinApp\IWSM.XamarinApp\Common\NavigationService.cs:115 [0:] OnItemTapped: IWSM.Shared.DataModels.WorkTaskDataModel [0:] Error NavigateTo BenWorkTasksPage. Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. at Xamarin.Forms.Label.FontStructPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x0010e] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x0014b] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x0005f] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle) [0x00000] in <filename unknown>:0 at Xamarin.Forms.Setter.Apply (Xamarin.Forms.BindableObject target, Boolean fromStyle) [0x000a4] in <filename unknown>:0 at Xamarin.Forms.Style.ApplyCore (Xamarin.Forms.BindableObject bindable, Xamarin.Forms.Style basedOn) [0x0001e] in <filename unknown>:0 at Xamarin.Forms.Style.Xamarin.Forms.IStyle.Apply (Xamarin.Forms.BindableObject bindable) [0x0003e] in <filename unknown>:0 at Xamarin.Forms.VisualElement+MergedStyle.SetStyle (IStyle implicitStyle, IStyle classStyle, IStyle style) [0x00111] in <filename unknown>:0 at Xamarin.Forms.VisualElement+MergedStyle.set_Style (IStyle value) [0x0000d] in <filename unknown>:0 at Xamarin.Forms.VisualElement+<>c.<.cctor>b__211_6 (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x00000] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x0010e] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x0014b] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x0005f] in <filename unknown>:0 at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0 at IWSM.XamarinApp.Views.BenWorkTasksPage.InitializeComponent () [0x0af0c] in <filename unknown>:0 at IWSM.XamarinApp.Views.BenWorkTasksPage..ctor (IWSM.Shared.DataModels.WorkTaskDataModel wtdm) [0x00008] in D:\Shamnad_TFS_Workspace\IWSM.XamarinApp\IWSM.XamarinApp\IWSM.XamarinApp\Views\BenWorking\BenWorkTasksPage.xaml.cs:31 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:644 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00016] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:650 at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00089] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:635 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:663 at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/3339/39ebb778/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62 at IWSM.XamarinApp.Common.NavigationService+<NavigateTo>d__15.MoveNext () [0x00173] in D:\Shamnad_TFS_Workspace\IWSM.XamarinApp\IWSM.XamarinApp\IWSM.XamarinApp\Common\NavigationService.cs:115

Shell.SearchHandler ERROR. BUG?

$
0
0

Hi, after updating to xforms 5, SearchHandler incorrectly displays ...
Tested on emulator and on physical device, with android 9, 10, 11.
I also downloaded the updated xanimals example and the error is present.

It doesn't happen with xforms 4.8.
Tips?

Detect if listview or collectionview is srolling by user

$
0
0

Is there any way to detect if listview or collectionview is scrolling by user and not from ScrollTo method?

I am using ScrollTo as the example below:
colViewCategories.ScrollTo(categoryItem, null, ScrollToPosition.Center, true);

Or if i can disable Scrolled Event till ScrollTo Method will stop to scroll.

How load the last page loaded in webview when I push the home button in andriod or ios

$
0
0

Hi everyone,

I write you because I am looking some example to recover / load the state of my app viewing just before the user pushed the home button on the phone. My app is very simple, its only has a webview and It receives push messages tha open in webview an url of my site. But when the user open my app, push the home button of the phone and come back to my app, It always open the home url of my site, even my website is an single page application so I need that the app recover whatever was viewing the user in that moment. ¿How I preserve the state of the app to not loose whatever the user was viewing inside my app?

Please I am extremly novice with the development in xamarin, so I appreciate any help.

I attached my app to review.

Regards!!!

FontsAwesome Samsung S20

$
0
0

Hi, I have problem with fontsAwesome on some device? Anyone has an idea how to solve this?

For now, it seems not to work on this specific device.'
This is my usage of fonts in code:

and here I have my fonts:

Viewing all 76418 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>