using Microsoft.Devices;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using MobileOSGeekApp.Resources;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Navigation;
using Windows.ApplicationModel;
using Windows.Phone.Speech.Recognition;
using Windows.Phone.Speech.Synthesis;
using ZXing;
using ZXing.Rendering;

namespace MobileOSGeekApp
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        private void btnGenerateBarcode_Click(object sender, RoutedEventArgs e)
        {
            //Generate Barcode in Windows Phone 8
            BarcodeWriter BarcodeData = new BarcodeWriter();
            BarcodeData.Format = BarcodeFormat.QR_CODE;
            BarcodeData.Options.Height = 500;
            BarcodeData.Options.Width = 500;
            BarcodeData.Options.Margin = 1;
            var barcodeImage = BarcodeData.Write("This is @isenthil and Welcome to MobileOSGeek.com");
            barcodeImg.Source = barcodeImage;
        }
    }
}