Button with an image, how to centre the image horizontally?
Hi guys, Trying to get a little button with an image, I want the image to be centred within the button but it is always to the left. Button button = new Button(); { //WidthRequest = 50 BorderWidth =...
View ArticleNavigation Issues When Using a Tabbed Page
Hi, I am having a couple of issues when using the TabbedPage in Xamarin.Forms app I am hoping you all can help me with. The ListView control I am using to display my list of Members is not respecting...
View ArticleAmazon Fire Tv (Stick)
Hi All, I tried using Xamarin.Forms on the Amazon Fire Tv (Stick), unfortunately it didn't work. The problem is that it doesn't have an ActionBar, but the initialization tries to set it up, an simple...
View ArticleRaise entry.Completed event after iOS keyboard is closed
I followed https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/ios/add-done-to-keyboard/ to add a Done button to iOS keyboard. However, I'm handling entry.Completed event in Xamarin...
View ArticleLinker Stripping Out Serialization
I've been using the following bit of code for years to save simple objects local storage. using (FileStream fs = new FileStream(filename, FileMode.Create)) { DataContractSerializer dcs = new...
View ArticleXamarin.Forms 2.0.1-pre1 Released
Apologies for the light feature/bug list. We were really focused on 2.0.0 and service releases. Features Add PanGestureRecognizer Bug Fixes [Android] Resolve issue where AnchorX was sometimes...
View ArticleAccidently typed wrong URL for my Online GIT repo. Where can I update it?
I am using Visual Studio online and I set up a GIt Repo. When I did the initial publish in xamarin Studio I typed the URL of my repo wrong. Now xamarin studio tries to push changes there and it keeps...
View ArticleGetting thrown a 'System.Reflection.TargetInvocationException' every time I...
Getting thrown the error stated above when I'm debugging in iOS or Android. Didn't change any code other than re-formatted my xaml to look nicer on the views. Now I can't even build my code out. This...
View ArticleDisable/Enable IsGestureEnabled on MasterDetail not working on iOS
Hi. On iOS I needed to disable the gesture enable to open the master page on a MasterDetailPage as its content contains a swipe detector and interferes with it. If I don't disable the gesture it works...
View ArticleShare code between WPF and Xamarin.Forms (mobile for iOS, Android and Windows...
Hi, I have fully working WPF application, written following MVVM pattern. So my View and ViewModel are properly separated. I just read few articles about Xamarin.Forms cross-platform project. Of course...
View ArticleUsing Google SignIn SDK Component with Xamarin.Forms PageRenderer Does Not...
I'm attempting to use the Google Sign In SDK Component within a Xamarin.Forms application, however, I am unable to get the button click to actually display the Google Sign In SDK Login View. I've...
View Article#ifdef - make it active
Hi, sorry for stupid question, but i didn't have any clue about this (even i don't know what its name). You can look at attachment image, i create shared code (on shared project), use #IFDEF for...
View ArticleXamarin.Forms.Image to System.Drawing.Bitmap
How can I convert Image object to a bitmap in a Xamarin.Forms PCL project?
View ArticleEmbedded tweets not working in webview in iOS project
Hi there, I'm using a Webview to show a mobile friendly webpage containing articles. These webpages often have embedded Tweets. But these embedded Tweets won't render in my iOS project. In the Droid...
View ArticleExtract Zip File
I have a zip file, which contains several txt files, I'm trying to extract the text files, but I can not because when I extract the file is on the device as if it were corrupted., in project DROID...
View ArticleText being trimmed in a Label when rotated
Hi. This is my first post here in Xamarin Forums, so please excuse me (and do let me know!) if this question is not placed where it should or whatever. I'm also pretty new with Xamarin itself, so maybe...
View ArticleHow to assign the StyleId for windows phone UI
The below code can be used for Android Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => { if ((e != null) && (e.NativeView != null)...
View ArticleXamarin.Forms.Labs FileNotFoundException error in xaml
hello! I'm trying to use ExtendedViewCell control in my listview to hide the separation bar. I added the Xamarin.Forms.Labs (Core) package with nuget. But in my xaml it throws the FileNotFoundException...
View ArticleHow to automatically resize images when switching orientation
I have a grid with 2 columns and x rows. Within these cells i display images. When viewing my app in portrait mode, the images fill the complete width of the cell, however in landscape the images have...
View ArticleIs there any way to count sleep time of our app ?
I am creating portable project.Is there any way to count sleep time of our app ?
View Article