Posts

Showing posts from 2017

How to deploy app on Iphone (Xamarin Forms)

Image
You must need a subscription of Apple Developer Account which is of 99$/year. We have to divide this procedure in 4 simple steps. a) First of all we will create a certificate in Mac(Signing identity). b) After signing in the developer account,we will create a new App Id. c) Add devices in the Device options in Apple Developer Account d) In the end we will create a provisioning profile and install it on the mac. a) First of all we will create a certificate in Mac(Signing identity).      There are 2 ways of creating a signing certificate    > Through Xcode(We will follow this approach)    > Through Developer Account   1. Choose Xcode Menu >Preferences... 2. Click the Accounts tab. 3. Click the + button and select Add Apple ID... from the popup menu:   4. If you have an Apple ID, enter the Apple ID and password, and click the Sign In button: 5. Otherwise, click Create an Apple ID and follow the steps to create a new Apple ID. Note that you will

Scrolling Problem ListView in ScrollView (Solved)

Image
ListView in ScrollView   Today am gonna show you the common problems we face while using listview in xamarin forms in MVVM. To check out how to Use MVVM in Xamarin Forms just  Click Here ! There is a common problem of Scrolling of ListView in ScrollView This is due to the fact is that Android cannot render both the Scroll properties of Scrollview and Listview. There are lot of solutions of this problems like custom rendering.But custom rendering is the one step which most of the developers don't like much.So I have come with an alternate solution or you can call it as some trick . Check Out The Following Code! Just Write All the Code in the ListView.Header property and your problem will be solved. This solution is efficient in most os the scenarios.But If you again facing some problem than Please Write Us In the Comments

FilePicker In Xamarin Forms

Image
Hey Guys  Today We are gonna learn about FilePicker. Some Apps requires to pick the file as well images from the External Storage Devices or in the case of ios iCloud. As We all know there are not much nugets for filePicker in Xamarin.Forms. But I have found a nuget and I find it very useful. First and foremost download the following nuget in your xamarin forms project Install-Package  Install-Package Xam.Plugin.FilePicker Now Check The Following Code FilePicker Plugin for Xamarin.Forms Simple cross-platform plug-in that allows you to pick files from the filesystem (iCloud drive in case of iOS) and work with them. Setup Available on NuGet:  FilePicker Nuget Install into your PCL project and Client projects. Platform Support Platform Supported Version Xamarin.iOS Yes iOS 6+ Xamarin.iOS Unified Yes iOS 6+ Xamarin.Android Yes API 10+ Windows Phone Silverlight No Windows Phone RT Yes 8.1+ Windows Store RT Yes 8.1+ Windows 10 UWP Yes 10+ Xam

FlowListView

Image
Hey Guys Today We are gonna learn about Horizontal Listview. During designing of any App we most probably use the  ListView Control. ListView Control is very Useful An Important control while developing any App. We Face many issues during working with ListView.But we have solutions too - > Check Here Horizontal Listview First and foremost download the following nuget in your xamarin forms project Install-Package DLToolkit.Forms.Controls.FlowListView Now Check The Following Code This Flowlist contains many properties and is very suitable for MVVM pattern.You just have to give it time and patience. For Any Queries And Suggestions. Please Write Us In the Comments

Xamarin Forms Prewier

Image
Hey Guys Today We are gonna learn about Xamarin Forms cool feature which is known as Xamarin Prewier.Xamarin Prewier is very useful tool in order to see the changes in the User Interface,while desiging the View.For more Info About Xamarin Prewier  Check Here  First Of All Update Your Xamarin.Forms to the latest version Visual Studio on Windows Use the  View > Other Windows > Xamarin.Forms Previewer  menu in Visual Studio to open the preview window. Use the  Window > New Vertical Tab Group  menu to position it side-by-side. XAML Preview Options The options along the top of the preview pane are: Phone  – render in a phone-size screen Tablet  – render in a tablet-size screen (note there are zoom controls at the bottom-right of the pane) Android  – show the Android version of the screen iOS  – show the iOS version of the screen Portait (icon) – uses portrait orientation for the preview Landscape (icon) – uses landscape orientation for the preview Pr

How to Use Media Picker In Xamarin Forms Portable

Image
Today  We will learn how to use Media Picker Nuget in Xamarin Forms Cross Platform First of all download MediaPicker nuget from this link. API Usage Call CrossMedia.Current from any project or PCL to gain access to APIs. Before taking photos or videos you should check to see if a camera exists and if photos and videos are supported on the device. There are five properties that you can check: /// <summary> /// Initialize all camera components, must be called before checking properties below /// </summary> /// <returns>If success</returns> Task<bool> Initialize(); /// <summary> /// Gets if a camera is available on the device /// </summary> bool IsCameraAvailable { get; } /// <summary> /// Gets if ability to take photos supported on the device /// </summary> bool IsTakePhotoSupported { get; } /// <summary> /// Gets if the ability to pick photo is supported on the device /// </summary> bool I

What Is Android?

Image
Android is a software package and linux based operating system for mobile devices such as tablet computers and smartphones. It is developed by Google and later the OHA (Open Handset Alliance). Java language is mainly used to write the android code even though other languages can be used. The goal of android project is to create a successful real-world product that improves the mobile experience for end users. There are many code names of android such as Lollipop, Kitkat, Jelly Bean, Ice cream Sandwich, Froyo, Ecliar, Donut etc  What is Open Handset Alliance (OHA)? It's a consortium of 84 companies such as google, samsung, AKM, synaptics, KDDI, Garmin, Teleca, Ebay, Intel etc. It was established on 5th November, 2007, led by Google. It is committed to advance open standards, provide services and deploy handsets using the Android Plateform. Features Of Android After learning what is android, let's see the features of android. The important features

Bindable Picker in Xamarin Forms(MVVM)

Image
Picker is a great control for selecting one option from the multiple options. But  If your developing your project using MVVM Framework then you surely get problem while using picker. The reason is ITEMS property in picker is not bindable property .So Now you must be wondering that how to use a picker then in MVVM.To get this answer you might go from one forum to another forum and you get good custom  bindable picker,but then all these picker have some problems.So I without any wasting your much more time suggest to use Jpc.BindablePicker To Use Bindable Picker,first we need to add the namespace in the xaml file Now Add the BindablePicker in the xaml As you have checked the “ItemSource” property is not available in the regular picker. Now Next Step is to bind the properties in the ViewModel. Now if you want to get the selectedItem from the picker just  use   ItemSelectedFromList.ToString() ; So In this way you can use the bindab

ListView in Xamarin Forms (Mvvm)

Image
ListView in Xamarin Forms  (Mvvm) Today am gonna show you the common problems we face while using listview in xamarin forms in MVVM. To check out how to Use MVVM in Xamarin Forms just Click Here ! • First Of All I tell how to use Listview using MVVM In Xaml   In VIewModel In  Model Now if you write a button control in the listview then the command property would not work This is because the BindingContext of the listview is limited to the properties present in the Person Class So  We have to change the Context Of the control in Order to access the Command Property Which we mentioned In the View Model. We have to do few modifications in Xaml code So In this way we can implement Click on the buttons in the listview using Mvvm. This is not only limited to Command Property..We can access any property of any Control in Xamarin forms using this approach in the Listview For Any Queries And Suggestions. Please Write Us In the Comments

Xamarin Forms using MVVM

Image
Creating a Xamarin.Forms app that uses the MVVM pattern The MVVM pattern is well documented, and is used to cleanly separate the responsibility  for the appearance and layout of the UI from the responsibility for the business logic. In this blog post I’ll explore using Xamarin.Forms and the MVVM pattern to create a simple photo viewer app.  For more information about Xamarin.Forms and MVVM, see From Data Bindings to MVVM. Implementation Bootstrapping the app 1 public class App : Application 2 { 3    public App() 4    { 5       // The root page of your application 6       MainPage = new MainPage(); 7    } 8 } Connecting view models to views   The simplest approach for connecting a view model to a view is for the view to declaratively  instantiate its corresponding view model in XAML. When the view is constructed,  the corresponding view model object will also be constructed 1 < ContentPage xmlns ="http://xamarin.com/schemas/201