How to change the color of MenuItem in ViewCell
Can anyone please tell me that how could I change the color of MenuItem. Just like iPhone's Mail App has three different colors of MenuItems. public class MyListCell : ViewCell { public...
View ArticleUnable to use TapGestureRecognizer in Xaml
Hello, I'm trying to use a TapGestureRecognizer on an Image in Xaml. This looks like this: <StackLayout Orientation="Vertical"> <Label Text="{Binding PositionString}" FontSize="18" />...
View ArticleCan't deploy app to Android Emulator
Hi I'm new on Xamarin Forms, I downloaded API 22, after that I couldn't deploy the application on the emulator. The "Use Fast Deployment " is not checked. Can somebody please help me?
View ArticlePlay *.wav file on Android device
Hi All, My below code works fine on Genymotion emulator but it doesn't work while I am debugging on the device (I can't hear any voice): `[assembly: Dependency(typeof(AudioService))] namespace...
View ArticleMVVM Light code templates/snippets and setup in Xamarin studio
Is there some place where the MVVM Light snippets are available for the Xamarin studio under a forms project? The PCL NuGet package is "Libs only" and doesn't setup the project with folders and files....
View Article[XLabs 2.0.0][Android] MediaPicker - Android.OS.BaseBundle could not be loaded
Hi, I am trying to use the MediaPicker available in XLabs 2.0.0 Stable, but keep running into an error whenever I try to access to the MediaPicker on an Android device. The error is as follows: 02-07...
View Articleaccess ntp server
Hi friends. There is an example how to get datetime from a ntp server in XF? thanks Alessandro
View ArticleButtons in stacklayout unresponsive (in a spanned row)
I have a vertical stacklayout that spans two rows in a grid, the buttons in the 2nd row are totally non responsive. It seems that they never get the touch event. I played around with the order of the...
View ArticleRanged slider
Hello! Would like a ranged slider (two directions) for iOS and Android. Anyone managed to implement custom renderers for this? The slider control which is in XF is a one direction slider.
View ArticleRendering label with HTML markup, is it possible?
Hi, I am getting a data from JSON having article body content that has paragraphs (separated by C# style \r\n). This works well, however now the requirement is if body has bold () or italic tags (). It...
View ArticlePopAsync() on a page with a ListView results in NullReferenceException
I am having a slight issue with on Page containing a ListView. When I Pop the page the call await Navigation.PopAsync(); results in a NullReferenceException with the following stack trace:...
View ArticleBinding Image.Source to String Property Fails on iOS
I have the following code (profileImage is an XF Image object), which sets up a binding to a property (StaffProfileImageUrl) of type string. I should note this is inside a custom ViewCell used in a...
View ArticleCustom PageRenderer issue on Android
Hi! I wrote a custom PageRenderer based on CarouselPageRenderer (added tabs to it, so it is a swipable tabbedpage). The only problem I'm facing is the handling of the tabs. I'm using the following...
View ArticleXamarin.Forms Device Timer Issue on iOS
Hello, The code below works on Android. However, on iOS the timer does not get triggered. Anyone aware of any iOS gotchas in this case? Thanks! private void ScheduleSynchronizeData() {...
View ArticleXaml Resources
My class constructor creates and adds the resources. I would also add resources from xaml but it seems that the xaml completely replace the object resources. public BasePage () { if (this.Resources ==...
View Articlebyte[] image into System.Windows.Controls.Image
I am working on a Xamarin.Forms Portable solution. The app UI is completely different for each platform so the portable project contains the logical code and the others uses the native UI such as axml,...
View ArticleOnResume never called
Hi. I have an app (in Android) where I try to "save state" so, when OnResume is called, I can recreate the last layout. The problem is that OnResume is never called. Always the app start from OnStart....
View ArticleOpen page from ContextAction.Clicked
How can I open new page from context action? Some code: public class DriveCell : ViewCell { public DriveCell() { ...creating layout here... CreateActions(); } private void CreateActions() { var...
View ArticleHow can I use Multiple AbsoluteLayoutFlags?
My goal: a single button full width at the bottom of the screen. Here is my code example: Button button = new Button { Text = "Example" }; AbsoluteLayout.SetLayoutFlags (button,...
View Articlehow to [preserve] in forms project
I'm linking sdk for an iOS forms app and I want to use [Preserve] I see no docs on how to do it. and I get a compile error saying that Preserve doens't exist. anyone can gelp?
View Article