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

ValidatableObject Class - Where is it defined?


[XF/iOS] FFImageLoading sometimes fails to show image when UIViewController is presented

$
0
0

@DanielL I'm presenting a custom UIViewController on top of RootViewController through a dependency service call in Forms. MainPage of my Forms app is a simple ContentPage (i.e. no navigation or tab pages). I have noticed that calling ImageService.Instance.LoadUrl() sometimes fails to load the image into a UIImageView even though the Success() method is called. This happens intermittently. The fix for me was to call ImageService.Instance.LoadUrl() in ViewDidAppear(), but this means that the image will be shown only after modal page animation is finished.

What is the recommended way to load images into a UIImageView on iOS? @DanielL, do you know why I'm having this issue?

Any best example codes for implementation of class mirroring and partial classes in Xamarin Form?

$
0
0

I am unable to access methods defined in partial classes in Android or other projects from shared code and also how to implement class mirroring, please show me some working examples. Thank you.

how to display notification when receiving email

$
0
0

Hi Xamarin forum is the a way to make a notification when my app detects a new email received?

Text inside image

$
0
0

I have a grid inside a grid.
I want 3 images with text inside them in inner grid align horizontally.
How can I achieve it ?

Hi guys, Do we have Any free autocomplete for xamarin.forms app development..

$
0
0

I Want a free autocomplete for my xamarin.forms app.
can you guys Suggest me one?

how do I store information securely?

$
0
0

I have been looking at Xamarin.Essentials secure storage from @JamesMontemagno , to secure type login information. As I understand it, when using this, the information is stored in keychain, keystore, which is supposed to be secure. What I am wondering is how the encryption of the information works, if the information is encrypted when using secure storage or if I need to encrypt the information before sending it to the secure storage.

Any information about storing information securely in xamarin.forms would be greatly appreciated.

Is anyone actually using the geofence plugin in production?

$
0
0

I have created an app that uses the geofence plugin (https://github.com/domaven/xamarin-plugins/tree/master/Geofence) to notify users when they enter/exit certain locaitons.

It works to some extent, but there are a few problems:
-When monitoring location exit, iOS users experience numerous false exit notifications, especially when moving around inside the location perimeters. Also if moving outside the location, when phone wakes up after being inactive, one can get 3-4 notifications about exiting the location, even if the user is far away
-All proper exit notifications (not the fake ones) are displayed twice on iOS
-On Android, some users don't get notifications at all, especially if the app is in background or closed

I am thinking about moving to the acr geofencing plugin (https://github.com/aritchie/geofences/tree/master/), but it is a bit of work. So I am wondering if:

1.Does anyone else have experience with either of these plugins in production?
2.Anyone else have experience with same problems that I am facing?

It's weird that nobody else seems to have problems. I was a newbie to Xamarin when writing the app, I am thinking of creating a small sample. Maybe I have made mistakes, although I have been going through my code several times without finding any. Maybe nobody is actually using the geofence plugin for other than playing around....

Appreciate any insights on this.


can i make app. Calculates the number of sentences ,Which I have already identified.

$
0
0

can i make app. Calculates the number of sentence if i say The sentences The number of times
Which I set before Select
ex : hi developers (3).
In this condition when i say "microphon" hi developers hi developers hi developers 3 time Gets
in action like message view for example

xamarin form : how to change label with stepper

$
0
0

i want to increment or decrement value of label based on stepper value change, but stuck here. Here is my code kindly check it

            <ListView x:Name="mylistview"


              >
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>


                                    <StackLayout HorizontalOptions="StartAndExpand">

                                        <Label HorizontalOptions="Center"   Text="{Binding Qty, StringFormat='Qty. {0:N}'}" FontSize="11"
                                       TextColor="Black" />

                                        <Stepper ValueChanged="stepper_ValueChanged"   Minimum="0" Maximum="10" x:Name="stepper" Value="{Binding Qty}" Increment="0.1" HorizontalOptions="LayoutOptions.Center" VerticalOptions="LayoutOptions.CenterAndExpand"  />


                                    </StackLayout>


                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>

Is Xamarin forms 3.2 slower and using more memory?

$
0
0

Anyone else experiencing performance issues using xamarin forms 3.2? I dont have significant changes in my xamarin forms app but after upgrading to 3.2 i have feeling that it became slower and consumes more memory. I am going to go into details with profiler but I would like to ask beforehand if anyone else have this feeling or proof?

[Android] How to show fullscreen overlay without the status bar

$
0
0

I need to show a fullscreen overlay (could be a modal ContentPage or a Grid on the same page) which hides the status bar. The previous/parent page should keep its status bar when the overlay is dismissed. The problem is, on Android, hiding and showing the status bar causes a relayout of the page so, for example, when I dismiss the overlay, the previous page will have to show its status bar and during that process its content gets shifted down. iOS doesn't have this problem as the status bar is already laid on top of the page content.

How can I toggle the status bar on and off on Android without causing page relayout? I have thought about using a translucent status bar, but this seems to mess up the adjust resize functionality of the soft keyboard as editable content does not move over the soft keyboard when it is visible.

sfListView

$
0
0



in main page
i show a list of latest products
the list loaded correctly
but, didn't appear till i tap on it

How to implement a calendar view in Xamarin forms??

$
0
0

Please i need urgent help!
I want to implement a calendar in my mobile app. I have tried various nugets but i'm not getting what i want.
Any ideas??
Attached are images of what i want to achieve and what i have so far.

Listview Item selected

$
0
0

I have list view in which their is label and button and if I click on button then it will open a custom popup with label name as Title of popup.

Custom popup is made up of Content View.

Now I'm unable to transfer the listview label name to custom popup content view.

Can anyone help?


Binding controls to a property on the Page

$
0
0

I've got a page which has a property. At the moment I'm setting up the page in the code behind but want to clean up the solution and use data binding to the property items and having the data binding in XAML.

<ContentPage.Content >
    <StackLayout Spacing="12" Padding="30,0"   >

        <input:RadioButtonGroupView  x:Name="RBG1" SelectedItemChanged="RBG1_SelectedItemChanged" >
            <input:RadioButton x:Name="RB1" Text="RB2" TextFontSize="20"  BackgroundColor="red" TextColor="White"  />
            <input:RadioButton x:Name="RB2" Text="Option 2" TextFontSize="20"  BackgroundColor="silver" TextColor="black" />
            <input:RadioButton x:Name="RB3" Text="Option 3" TextFontSize="20"  BackgroundColor="green" TextColor="White"  />
            <input:RadioButton x:Name="RB4" Text="Option 4" TextFontSize="20"  BackgroundColor="blue" TextColor="White" />
        </input:RadioButtonGroupView>

        <Button Text="{Binding Source=MyProperty,Path=MyProperty1  }"></Button>
    </StackLayout>
</ContentPage.Content>

and the code behind is

public partial class RadioGroup : ContentPage
{
    public Class1 MyProperty { get; set; }

    public RadioGroup ()
    {
        InitializeComponent ();
        //RBG1.BindingContext("")

        MyProperty = new Class1();  //Just for demo purposes to set the property


        RB1.Text = MyProperty.MyProperty1;
        RB2.Text = MyProperty.MyProperty2;
        RB3.Text = MyProperty.MyProperty3;
        RB4.Text = MyProperty.MyProperty4;        
    }        

}

So I'm setting the Text attribute on RB1,2,3,4 in the code behind but and trying to do it using something in the XAML

but can't seem to find any simple example of this - any assistance ?

UWP: Setting Image.Source locks file

$
0
0

[Apologies in advance if this is not the right way to use a discussion post. I figured that since I had the code working already a question wouldn't be appropriate.]

I've been working to make our app work in UWP, and I ran into a lot of UnauthorizedAccessExceptions when I attempted to delete or overwrite various files that we'd saved. I was confused by this, and investigated further. I ultimately discovered that I could make these exceptions go away (that is, permit these files to be deleted) by commenting out Images that had displayed these files earlier in the app's lifespan.

Sample image:

This struck me as odd, as nothing about the image seemed terribly unconventional or likely to cause errors, so I looked a bit deeper, and found some an old post that referenced this issue:

on stackoverflow.com google Xamarin-forms-uwp-image-never-closes-opened-file (can't post links yet, sorry)

The solution referenced there worked out for me. That is, rather than binding to a path I can work on the image in the code behind and use using statements to make sure the files in question are not locked.

I just wanted to see if any other developers have seen this error from UWP, and whether there is an easier solve that I might be missing? It doesn't seem like this can possibly be a hoop everyone who uses UWP has to jump through, but I haven't been able to work out any other ways to get my images to stop locking my files when I run the app in UWP.

-Thanks,
Walter Langendorf

Incompatibility on Android devices after publication on google play

$
0
0

Incompatibility on Android devices after publication on google play
Good evening to you.
I have a problem: when I finish developing my application and I publish on google play, some device does not see the application. if I send the link to a device that does not see, it says: "this version is not compatible with your device".
I develop in xamarin form and the min SDK is 4.3.
the name of my app on google play is: "UFC MOBILE BANKING"
Thanks for your help

Autocomplete Entry in Xamarin.Forms

$
0
0

I need autocomplete extender functionality for a entry field.How to implement autocomplete Entry in Xamarin forms.

How to acces the current view UIViewController from an external service

$
0
0

I'm creating a Service in Xamarin.Forms that needs to open a new UI.

For Android I'm using:

        private Context _activity;
        _activity.StartActivity(_authenticator.GetUI(_activity));

For iOS I need to access the current view to use the method PresentViewController();
Is there an equivalent to the Context object for iOS?

Thank you

Viewing all 77050 articles
Browse latest View live


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