Category : CSharp Visual Studio Windows Phone Xamarin
Category : CSharp Visual Studio Windows Phone Xamarin
The Global Azure Boot Camp is getting organized in Bhubaneswar, the Capital City of art, culture and history riched state Odisha, India. The BBSRAzureCamp app is a FREE hand guide for the attendees to help them to get the detailed info on the event. Guides attendees reach in the venue with the street level map
Map is an external component which will be obtained from the Nuget Component store.
Integration of Maps requires some config changes from platform to platforms. I have targeted the WinPhone project configuration here. In the next blog, will point to other platforms.
Simple Steps
In the PCL/Shared project, Let’s add a new Content page and name it as MapPage.cs. Now time to add the below code to it.
Xamarin uses the Keyboard class to show different virtual keyboards depending upon the user request. It contains several static properties to create different kind of virtual keyboards. Xamarin displays the Default Keyboard, if nothing is specified.
Keyboard for Chatting
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
MainPage = new ContentPage() { Content = new StackLayout() { Children = { new Entry() { Keyboard = Keyboard.Chat } } } }; |
It opens up the default virtual keyboard in the device, which would be convenient for chatting, having few extra keys.
The short answer is ScrollView is a Layout. But it can only contain a single Visual Element in its Content property.
Because, the Layouts such as Stack, relative etc. are derived from Layout<T> generic class. This Layout<T> generic class is derived from the Layout class, which is a non-generic class.
ScrollView is inherited from the Non-generic Layout class. That is the same reason, why it does not support a generic way to add children. It only exhibits the Content property to accept a single view or a Layout.
With the new release of Xamarin.Forms 1.3 version, the App Class has its new Avatar. The Older version of App Class was just a class with static methods. Unlike the older version, the new version is an inherited class from the Xamarin.Forms.Application class. Summary of improvements Addition of new life cycle events : We can
Web service is an important part of the mobile app. I am trying to consume a RESTFul web service in Xamarin using HttpClient. Prerequisites : – Microsoft.Net.Http – Newtonsoft.Json In this example, let’s display the name of the places for a given postal code. We will use the http://api.geonames.com webservice to get the places. Call
What is DependencyService in Xamarin ?
DependencyService is a static class under Xamarin.Forms namespace. Shared or Portable projects can access the platform based tweaks that are done in any specific platform projects by using DependencyService.
How it works?
The key point is by defining an Interface.
Xamarin.Mobile is a component from Xamarin to write a commonly used code to consume the device API. What I meant by the commonly used code is, the same code that will can access device specific APIs and behave accordingly depending upon the platform in which it is running.
More than a month back newest release of Xamarin.Mobile is still in its preview release mode.
As of now, it supports the following device APIs for iOS, Android and Windows Phone.