Accessing ResourceDictionary from xaml to c# programmatically
How do I access the contents of my ResourceDictionary that is located my App.xaml page? I am trying to make a label's text color that uses a color in my resource dictionary with key = "textColor" var...
View ArticleCan't add Shared Project to References in Windows Phone 8.1
Hello, I'm trying to add a Windows Phone 8.1 project to my existing solution which contains a Shared Project. I'm also using Xamarin.Forms. But when I follow these steps, I get stuck at the step where...
View ArticleSwitch to Landscape Full Screen View
I searched the forums but Didn't find anything like this. I'm using Charts in my app, so I want users to be able to switch from portait to full screen landscape for chart detailed analisis. I found a...
View ArticleAsync Web Service Problem
Hello everyone, I try to find a way (since a long time) to build my app with a web service. Here is my code from my web service and code form my app in attachment. When i launch my app, it crashes and...
View ArticleCreating a new GestureRecognizer
Looking at the Xamarin.Forms Api tha you provide, there is only TapGestureRecognizer. I was thinking of implementing more GestureRecognizers. However, in the interface that you guy provide is using...
View ArticleGetting Argument Cannot Be Null Parameter name: assemblyName XAML
I just cannot figure this out. I am trying to use a converter for a StaticResource call. On app startup I get the error Argument Cannot Be Null Parameter name: assemblyName XAML. Here is what I have....
View ArticleHow to intercept Navigation Bar Back Button Clicked in Xamarin Forms?
I have a xamarin forms page where the user can update some data in a form. I need to intercept the Navigation Bar Back Button Clicked to warn the user if some data have not been saved.How to do it? I'm...
View ArticleAndroid Account Manager Problem
I'm looking at using Account Manager in the Android portion of a Xamarin Forms application with the following code: var accMgr = AccountManager.Get(Forms.Context); var account = new Account("username",...
View Article[Guide + Code] Adding Pull To Refresh to Xamarin.Forms Android apps
I already posted about how you can do this on iOS with a custom TableViewRenderer, however last night I finally got it working on Android using the Support v4 SwipeRefreshLayout: Here is my blog post...
View ArticleNested Controls in Absolute Layout
I'd like to nest a frame inside another control, while using AbsoluteLayout. However, it seems that the control always takes the layout options of the parent. Am I doing something incorrectly, or is...
View ArticleInitializecomponent does not exist in the current context
Hi , I have updated my Xamarin Studio and Xamarin.Forms to 1.4.0.0, now when ever creating Xaml Page in portable application , i'm getting build error as "Initializecomponent does not exist in the...
View ArticleHow to Populate SQLite Db table in Grid view in Xamarin.Forms
Hi, i am new to Xamarin .Forms, i want to show DB Table records in grid view like in attached file, so how it is possible and which layout or view can i choose to achieve this type of view.
View ArticleCreating a custom control in a separate project and using it in another one –...
I tested a way of creating a XAML-defined custom compound control in a separate project and using it in another one. I created a Xamarin.Forms (template “Blank App (Xamarin.Forms Portable)”) solution...
View ArticleAdding Images to a Grid Layout
When looking at Images, is there anything wrong with this: grid.Children.Add(new Image { Aspect = Aspect.AspectFit, Source = "logo.png", }, 0, 1, 0, 1); // Left, Second element I have put logo.png and...
View ArticleDependancyService with BroadcastReceiver
Hi, I can't figure out how PCL project can be aware of returning actions, when IntentFilter is set in a Android (for example) Dependancy. In my case, I want to discover all Bluetooth devices (with...
View ArticleHow to hide navigation bar on Android Lollipop?
On earlier Android versions, up to 4.4 the following code in ContentPage subclass works perfectly: // Hide native navigation bar NavigationPage.SetHasNavigationBar(this, false); But on Android 5.0+...
View ArticleHow to implement the Horizontal ListView using Xamarin Forms?
I want to implement the listview with horizontal scroll in Xamarin forms. Xamarin forms provides Listview but it supports only vertical orientation(default), how can i implement the listview...
View ArticleOpen new Page
This is probably a really easy answer, but how do I open up a ContentPage from an existing ContentPage (from button click event) without using NavigationPage?
View ArticleTired of the situation
Hello, First let me tell you I'm a huge fan of the Xamarin.Forms concept and I love the Xamarin platform. But unfortunately, as a lot of other unlucky Xamarin.Forms developers, i begin to get tired of...
View Article