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

How to fit the height of CollectionView when it is wrapped by ScrollView?

Hi to everyone! I do not know if is a problem or a misunderstanding by me (maybe the second one) but I can not success to set any height size to my CollectionView. I am starting to use Xamarin and I...

View Article


Can we concatenate Binding with StringFormat in XAML?

Hello, Can we concatenate Binding values with stringformat IN XAML? For example: <label Text={Binding Firstname, Binding Lastname, StringFormat='{0} {1}'}/> Best regards

View Article


MVVM not work properly

I have a XAML form linked to an MVVM with the binding. At the first call the form is rarely populated, from the second onwards, it works sporadically. No errors are ever generated. This is the code:...

View Article

ViewModel Property getting set twice and null sometimes

I am having a problem with my Xamarin forms UI. On Appearing of a UI on my VM i call a function that does this public void OnAppearing() { Task.Run(() => { SetDataAsync().ConfigureAwait(false); });...

View Article

Whats the most simple way to create a FlexLayout with 2 - 4 images as content?

Hi, I want a FlexLayout to select my App's current language, which should be displayed as a well organised set of flags (starting with German and English flag) So, do I need a ViewModel for that, or -...

View Article


How do you attach a control event to a view model?

Is it possible to attach a control's events in XAML to a command in a similar manor to Microsoft's XAML, or is the only method to go via the pages code behind?

View Article

What is the best practice to call web api from xamarin forms?

Hi, I am working on xamarin forms. Where I need to call WEB API, I know how to call API in xamarin forms, but I want to know what is the best way to call web API. Now I have followed MVVM architecture,...

View Article

Binding.IndexerName and Binding.ProvideValue in Xamarin Forms

Hey, I am trying to implement the answer in this so question: http://stackoverflow.com/questions/40554561/re-evaluate-all-values-in-xaml-page-calculated-by-a-markup-extension/40567656#40567656 The...

View Article


Reusing Usercontrol and invoke BindingContext method

Hi all, I have a user control [A], with a code behind method to invoke its viewmodel command : void test() { if(this.BindingContext as AViewModel !=null) { var vm = this.BindingContext as AViewModel ;...

View Article


ScrollTo is not working for WPF application using Xamarin.forms

I am working on a chat application in WPF using xamarin. forms, here I got stuck at displaying the last item in the list when the conversation view is opened. I have tried with scrollTo but it is not...

View Article

Slow load images in ListView

Hi, I use the library FFImageLoading in a ListView and when I scroll, the images take time to appear, how can I make them appear immediately? I did some prubras, if I take a fixed image of drawable it...

View Article

How to add image upload in Xaml

This is my Xaml code .How do i add an image upload in this form. ` < StackLayout> <Grid x:Name="gridLayout" HorizontalOptions="FillAndExpand"> <Grid.RowDefinitions> <RowDefinition...

View Article

Refresh XAML at runtime Localization

Hey everyone, I try to implement https://forums.xamarin.com/discussion/82458/binding-indexername-and-binding-providevalue-in-xamarin-forms and I got it. Its working with one label. My issue is with...

View Article


InitializeComponent does not exist in the current context error

Hi, The error CS0103 (The name 'InitializeComponent' does not exist in the current context) has started appearing after doing a build of our Xamarin Forms solution. The build, however, appears to have...

View Article

how to write anything in Removable SD Card

I want to unzip .zip file in removable sd card. I am selecting .zip file using file picker. After selecting the file i get a path like this...

View Article


How to bind the `count` queried from a database to a `footer` inside...

<ListView x:Name="listView"> <ListView.Footer> <StackLayout> <Label Text="{Binding Count}" BackgroundColor="Gray"></Label> </StackLayout> </ListView.Footer>...

View Article

Automatically run a method when the application is open

I have application in Xamarin Forms, I want one of the methods of MainPage.xaml.cs to run automatic when the application is open. I want to automatically calla method when the application is open.

View Article


Background Color for Acr.UserDialogs loading spinner

Hi, am using Loading spinner from this nuget: https://github.com/aritchie/userdialogs I just want to change the color of the loading spinner & background color of it either if there is any other...

View Article

Custom Button renderer, how to change size under iOS

Hi all, I want to change the height of a button in a CustomRenderer. (The renderer does a bit more but this is also one feature of it) I implemented that successfully for Android, however under iOS I...

View Article

splash screen not loading issue

I have added splash screen to portable project. its working fine in ios. but in android project is not loading splash. its going to directly Main activity. I have set main activity to MainLauncher =...

View Article
Browsing all 77050 articles
Browse latest View live


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