Delpin Susai Raj Thursday, 28 September 2017

Xamarin Forms 3.0

Description

             This session will show the latest features of Xamarin.Forms, which is exciting because we're supporting three new platforms. Here we'll pull down data from Azure to populate the UI.


More information, check out this course on Microsoft Virtual Academy


Delpin Susai Raj Wednesday, 27 September 2017

What's New in Visual Studio 2017

Description

                 Visual Studio is a productivity game changer for C#! The .NET Compiler Platform ("Roslyn") enables many new experiences that will change the way you write and debug code. In this session, we'll dig into features that bring a new level of awesome to the C# language and IDE experience. Come learn about new language features, refactoring support, major debugging enhancements, code-aware frameworks, and much more!

More information, check out this course on Microsoft Virtual Academy



Download Slides Here


Delpin Susai Raj Monday, 25 September 2017

What's new in Xamarin

Description

                Xamarin enables C# developers to become native iOS, Android, and Windows mobile app developers overnight. In this session, learn about the latest and greatest features in Xamarin for Visual Studio enabling developers to leverage their existing .NET and C# skills to create iOS and Android mobile apps. In addition to allowing you to write your iOS and Android apps in C#, Xamarin lets you reuse existing .NET libraries and share your business logic across iOS, Android, and Windows apps.?During this session, we will cover the Xamarin platform, new developers tools, awesome SDKs that developers can take advantage of, and a lot more.

Progress Controls in UWP

In this blog, you will learn How to use Progress controls in UWP.

Introduction:

             A progress control provides feedback to the user that a long-running operation is underway. It can mean that the user cannot interact with the app when the progress indicator is visible, and can also indicate how long the wait time might be, depending on the indicator used.

Types of progress

There are two controls to show the user that an operation is underway – either through a ProgressBar or through a ProgressRing.


1. ProgressBar 

The ProgressBar indeterminate state shows that an operation is underway, does not block user interaction with the app, and its completion time is unknown.


2. ProgressRing 

The ProgressRing only has an indeterminate state and should be used when any further user interaction is blocked until the operation has completed.


Learn Progress controls via Video.



Please Share your comments and feedbacks.
Delpin Susai Raj Friday, 22 September 2017

How to Change Background Colors Dynamically in Xamarin iOS

In this article, you will learn how to Change Background Colors Dynamically in Xamarin iOS App, using Xamarin Studio.

Introduction

Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows Phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.



Prerequisites


  • Xamarin Studio.
  • Xcode.


The steps given below are required to be followed in order to Change Background Colors Dynamically in Xamarin iOS App, using Xamarin Studio.

Step 1

Go To Xamarin Studio.

Click New Solution—> select iOS—>select App--> Choose single View App. Afterwards, click Next.



Step 2

In this step, configure your app. Give the app name (Ex: sample), Organization Identifier. Afterwards, click Next.



Step 3

In this step, give your project name (Ex: Sample) and solution name (Ex: Sample). Give the path of your project. Afterwards, click Create.



Step 4

Subsequently, go to the solution. In the solution, get all the files and sources in your project. Now, select Main.storyboard and double-click to open Main.storyboard page.



Step 5

After opening the Main.storyboard, you can design this page, as per your desire.



Step 6

Now, go to the Toolbox Window. In the Toolbox Window, get all the types of the tools and controls. You need to go to the Toolbox Window. Now, scroll down and you will see all the tools and controls.
You need to drag and drop the Three Buttons.



Step 7

Next, You need to align the Buttons, using constraints, which can be learned here.

https://developer.xamarin.com/guides/ios/user_interface/designer/designer_auto_layout/



Step 8

Now, go to the Properties Window. Select the first Button and give a name (Ex:btnRed).



Step 9

Select the Second Button and give a name (Ex:btnBlue).



Step 10

Select the Second Button and give a name (Ex:btnBlue).




Step 11

In this step, go to the ViewController.cs page. write the code given below.

ViewController.cs

using System;

using UIKit;

namespace XamariniOSBackgroundColor
{
 public partial class ViewController : UIViewController
 {
  protected ViewController(IntPtr handle) : base(handle)
  {
   
  }



  public override void ViewDidLoad()
  {
   base.ViewDidLoad();
   // Perform any additional setup after loading the view, typically from a nib.
  }



  partial void BtnRed_TouchUpInside(UIButton sender)
  {
   View.BackgroundColor = UIColor.Red;
  }
  partial void BtnBlue_TouchUpInside(UIButton sender)
  {
   View.BackgroundColor = UIColor.Blue;

  }
  partial void BtnGreen_TouchUpInside(UIButton sender)
  {
   View.BackgroundColor = UIColor.Green;
  }

  public override void DidReceiveMemoryWarning()
  {
   base.DidReceiveMemoryWarning();
   // Release any cached data, images, etc that aren't in use.
  }
 }
}







Step 12

Now, go to Run option, choose Debug and the list of iPhone and iPad simulators, which are available. You can choose any one simulator and run it.



Output

After a few seconds, the app will start running on your iPhone simulator.You will see your app working successfully.

You can click any color Button it will work Successfully.



Summary

This was the process of how to Change Background Colors Dynamically in Xamarin iOS App, using Xamarin Studio.

Please share your comments and feedback.
Delpin Susai Raj Wednesday, 20 September 2017

DatePicker in Xamarin iOS

In this article, you will learn how to Create A DatePicker in Xamarin iOS, using Xamarin Studio.

Introduction

Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.



Prerequisites


  • Xamarin Studio.
  • Xcode.


The steps given below are required to be followed in order to Create A DatePicker in Xamarin iOS, using Xamarin Studio.

Step 1

Go To Xamarin Studio.

Click New Solution—> select iOS—>select App--> Choose single View App. Afterwards, click Next.



Step 2

In this step, configure your app. Give the app name (Ex:sample), Organization Identifier. Afterwards, click Next.



Step 3

In this step, give your project name (Ex: Sample) and solution name (Ex: Sample). Give the path of your project. Afterwards, click Create.



Step 4

Subsequently, go to the solution. In the solution, get all the files and sources in your project. Now, select Main.storyboard and double click to open Main.storyboard page.



Step 5

After opening the Main.storyboard, you can design this page, as per your desire.



Step 6

Now, go to the Toolbox Window. In the toolbox Window, get all the types of the tools and controls. You need to go to the toolbox Window. Now, scroll down and you will see all the tools and controls. You need to drag and drop the Date Picker.
Next You need to align the Date Picker, using constraints.



Step 7

Now, go to the Properties Window. Select the Date Picker and give a name (Ex:datePicker).



Step 8

You need to drag and drop the Label.
Next You need to align the Label, using constraints.



Step 9

Now, go to the properties Window. Select the Label and give a name (Ex:lblDisplay).



Step 10

In this step, go to the ViewController.cs page. write the code given below.

ViewController.cs

using System;

using UIKit;

namespace XamariniOSDatePicker
{
 public partial class ViewController : UIViewController
 {
  protected ViewController(IntPtr handle) : base(handle)
  {
   // Note: this .ctor should not contain any initialization logic.
  }

  public override void ViewDidLoad()
  {
   base.ViewDidLoad();


   datePicker.ValueChanged += (object sender, EventArgs e) =>
   {
    lblDisplay.Text = datePicker.Date.ToString();
   
   };
   // Perform any additional setup after loading the view, typically from a nib.
  }

  public override void DidReceiveMemoryWarning()
  {
   base.DidReceiveMemoryWarning();
   // Release any cached data, images, etc that aren't in use.
  }
 }
}




Step 11

Now, go to Run option , choose Debug and the list of iPhone and iPad simulators, which are available. You can choose any one simulator and run it.



Output

After a few seconds, the app will start running on your iPhone simulator.You will see your app working successfully.



You can choose any date, it will be showed on the Label is successfully.

Summary

This was the process of how to Create a DatePicker in Xamarin ios , using Xamarin Studio.

Please share your Comments and Feedback.
Delpin Susai Raj Tuesday, 19 September 2017

Image Picker in Xamarin iOS

In this article, you will learn how to Pick A Image in Xamarin iOS, using Xamarin Studio.


Introduction

Xamarin is a platform to develop cross-platform and multi-platform apps (for example, Windows phone, Android, iOS). In Xamarin platform, the code sharing concept is used. In Xamarin Studio, Visual Studio is also available.

Download Code Here...



Prerequisites


  • Xamarin Studio.
  • Xcode.


The steps given below are required to be followed in order to Pick A Image in Xamarin iOS, using Xamarin Studio.

Step 1

Go To Xamarin Studio.

Click New Solution—> select iOS—>select App--> Choose single View App. Afterwards, click Next.



Step 2

In this step, configure your app. Give the app name (Ex:sample), Organization Identifier. Afterwards, click Next.



Step 3

In this step, give your project name (Ex: Sample) and solution name (Ex: Sample). Give the path of your project. Afterwards, click Create.



Step 4

Subsequently, go to the solution. In the solution, get all the files and sources in your project. Now, select Main.storyboard and double click to open Main.storyboard page.



Step 5

After opening the Main.storyboard, you can design this page, as per your desire.



Step 6

Now, go to the Toolbox Window. In the toolbox Window, get all the types of the tools and controls. You need to go to the toolbox Window. Now, scroll down and you will see all the tools and controls. You need to drag and drop the Button.
Next You need to align the Button, using constraints.



Step 7

Now, go to the Properties Window. Select the Button and give a name (Ex:btnPick).



Step 8


You need to drag and drop the ImageView.
Next You need to align the ImageView, using constraints.



Step 9

Now, go to the properties Window. Select the ImageView and give a name (Ex:imgView).



Step 13


In this step, go to the ViewController.cs page. write the code given below.

ViewController.cs


using System;
using Foundation;
using UIKit;

namespace XamarinIosImagePicker
{
 
 public partial class ViewController : UIViewController
 {
  UIImagePickerController picker;
  protected ViewController(IntPtr handle) : base(handle)
  {
   // Note: this .ctor should not contain any initialization logic.
  }

  public override void ViewDidLoad()
  {
   base.ViewDidLoad();
   // Perform any additional setup after loading the view, typically from a nib.
  }

  partial void BtnPick_TouchUpInside(UIButton sender)
  {
   picker = new UIImagePickerController();
   picker.SourceType = UIImagePickerControllerSourceType.PhotoLibrary;
   picker.MediaTypes = UIImagePickerController.AvailableMediaTypes(UIImagePickerControllerSourceType.PhotoLibrary);
   picker.FinishedPickingMedia += Finished;
   picker.Canceled += Canceled;

   PresentViewController(picker, animated: true, completionHandler: null);
  }
  public void Finished(object sender, UIImagePickerMediaPickedEventArgs e)
  {
   bool isImage = false;
   switch (e.Info[UIImagePickerController.MediaType].ToString())
   {
    case "public.image":
     isImage = true;
     break;
    case "public.video":
     break;
   }
   NSUrl referenceURL = e.Info[new NSString("UIImagePickerControllerReferenceUrl")] as NSUrl;
   if (referenceURL != null)
    Console.WriteLine("Url:" + referenceURL.ToString());
   if (isImage)
   {

    UIImage originalImage = e.Info[UIImagePickerController.OriginalImage] as UIImage;
    if (originalImage != null)
    {
     imgView.Image = originalImage;
    }
   }
   else
   { 
    NSUrl mediaURL = e.Info[UIImagePickerController.MediaURL] as NSUrl;
    if (mediaURL != null)
    {
     Console.WriteLine(mediaURL.ToString());
    }
   }
   picker.DismissModalViewController(true);
  }

  void Canceled(object sender, EventArgs e)
  {
   picker.DismissModalViewController(true);
  }

  public override void DidReceiveMemoryWarning()
  {
   base.DidReceiveMemoryWarning();
   // Release any cached data, images, etc that aren't in use.
  }
 }
}






Step 11

In this step Set Photo Library Access Permission in Your app. Go to Solution Explorer—>Info.plist.
Now add Privacy-Photo Library Usage Description. permission.



Step 12

Now, go to Run option , choose Debug and the list of iPhone and iPad simulators, which are available. You can choose any one simulator and run it.



Output

After a few seconds, the app will start running on your iPhone simulator.You will see your app working successfully.

You can click pick Image Button.Your photo Library will be opened.

Now you can choose Image. The image will be display the Image view



Summary

This was the process of how to Pick A Image in Xamarin iOS , using Xamarin Studio.

Please share Comments and Feedback.