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

xamarin.forms.map

public class App : Application { public App () { // The root page of your application var map = new Map (MapSpan.FromCenterAndRadius (new Position (37, -122), Distance.FromMiles (10))); var pin = new...

View Article


how to handle orientation for just some pages?

it's common in an app that some pages will support landscape, and others not. How can we handle this in xamarin forms? I have no problem doing this in native IOS apps (I'm am objective c developer,...

View Article


Device.StartTimer doesn't stop

It appears I may have the problem of it not deploying the updated code to the iPAD. I have seen this before. Hi, I have the following code snippet in the .cs of my xaml page. public ConectingXamlPage()...

View Article

Image may be NSFW.
Clik here to view.

How to achieve listview refresh

xaml <?xml version="1.0" encoding="UTF-8"?> <ContentPage.Content> <ListView.ItemTemplate> </ListView.ItemTemplate> </ContentPage.Content> code error :...

View Article

Automating testing for Xamarin.Form Custom controls

Hi, I have a Xamarin.Form custom control for which i need to automate the testing process. To be more specific I need to test the control is rendered correctly on each platform(Android,iOS,WinPhone)...

View Article


how to debug forms errors - custom control/renderers

I used the exact same recipe I used for previous custom controls but when I use them in xaml the app crashes with: "Exception has been thrown by the target of an invocation." nested down in...

View Article

Custom Layout, override OnSizeRequest bug?

I've created a custom layout called HorizontalWrapLayout, which subclasses Layout, and have overridden OnSizeRequest. I seem to be getting strange behavior... I return this line: return new...

View Article

Icon property causes iOS System Exception native 'initWithContentsOfFile:'...

When I set the Icon property to a tab menu page, I get the following System Exception when running the iOS Xamarin Forms app: System.Exception: Could not initialize an instance of the type...

View Article


Width/WidthRequest always returns -1

I've got a control which is essentially a relativelayout which contains 6 more relativelayouts. I'm attempting to set the width of the subviews to fill the parent container. However, when I attempt to...

View Article


Persistent Menu bar

Hello! I'm trying to create an persistent menu bar at the bottom of the app. It should always be there and contan 3 horizontal buttons. Currently I'm using MasterDetailPage with NavigationPage and have...

View Article

Bug in grouped lists?

I'd love to file this in BugZilla but it appears to be broken ("Webpage is not available"). And I'm not 100% sure it is a bug. When I create a grouped list with two labels, and the first label has two...

View Article

FontSize - On platform

Hi guys i can't find any information about how to create a style or a resource in app.xaml of type FontSize. They are example with enum type in code behind (Large, Medium, Small...), they are exemple...

View Article

Image may be NSFW.
Clik here to view.

Why almost everything is private, internal on non-virtual?

We love the idea of Forms. We fully understand that the included renderers are simple and in real world app there will be need to create custom ones. We are now creating a real world app - and it seems...

View Article


Problem on finding correct package after migrating to Unified API

Hi, I just migrated to Unified API, I'm re-adding all the packages, Xamarin Forms 1.3 added successfully, now I'm trying to add Xamarin Labs but I'm not able to find version 1.2 from nuget, only 1.0.1...

View Article

MSBuild failure

Build fails with MSBuild failure. _InvalidConfigurationMessageText = The OutputPath property is not set for project 'IndisellX.Android.csproj'. Please check to make sure that you have specified a valid...

View Article


MasterDetailPage, Detail page's title is always invisible

Hi, I am using MasterDetailPage and its working beautifully. But my problem is I have set Title to my Detail page, which is not shown at all, and its always invisible. If I navigate to Detail page...

View Article

How to instantiate xamarin android/ios native custom control class in xamarin...

Custom control class: public class CustomTextInput : UITextField { } Xamarin.Forms xaml: <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"...

View Article


Toolbar icons looks too big in iPad normal in iPod Touch, Android...

Hi, In my app I am using ToolbarItems in most of the pages. When I view my app on iPad, some of the icons in toolbar are looking too big, but its looks normal in iPod Touch, Android, haven't tested yet...

View Article

How to display Tab text middle in the verticle alignment in iOS?

Hi, I have created app using Xamarin.Forms 1.3.4 version. How can I set the Tab text middle in the vertical alignment for iPhone if the icon doesn't exists? In Android, it looks good but in iPhone it...

View Article

Webview zoom in/out is not working on samsung galaxy s2 android 4.0.3

Hi, Webview zoom in/out is not working on samsung galaxy s2 android 4.0.3 but it is working on android 4.4.4 or later version. It would be a great help If anyone can know the solution. Thanks

View Article
Browsing all 58056 articles
Browse latest View live