Selasa, 29 Maret 2016

Riska Free Template 2016 Fast and Responsive Template


Riska Free Template 2016 Fast and Responsive Template

Pada kesempatan kali ini * BLOGGINGPASURUAN * akan berbagi template gratis yang saya beri nama Riska Fast and Responsive Blogger Tamplate, saya menggunakan nama Riska alasannya adalah nama dari anak pertama saya, dan sebelumnya saya juga membagikan template gratis yaang juga saya beri nama Syahfira yang notabene adalah nama anak kerdua saya… Ok langsung saja !

Template ini Saya bagikan khusus untuk Anda semua pengunjung BLOGGINGPASURUAN  yang menginginkan sebuah template dengan loading yang cepat, ringan, serta dipadukan dengan

tampilan yang menarik. Template ini pun sudah mendukung beberapa fitur penting seperti responsive, seo friendly, validasi pada HTML5 dan CSS3, high CTR, dynamic heading dan masih banyak lagi. Anda bisa lihat tabel dibawah ini :

Note : Template ini saya uji cobakan pada domain http://infohapee.blogspot.co.id

NoFeaturesAvailability
1ResponsiveCek
2SEO FriendlyCek
3Google Testing Tool ValidatorCek
4Mobile FriendlyCek
5Two Columnstrue
6Social share buttontrue
7Dynamic Headingtrue
8Responsive Droopdown Menutrue
9Custom Subscribe box Responsivetrue
10Search box Responsivetrue
11Author Box Responsivetrue
12Breadcrumbstrue



Mohon untuk tidak menghapus link credit, hargai karya orang lain

Cara Test Blog Responsive atau Belum

Cara Test Blog Responsive atau Belum

Kali ini Bloggingpasuruan ingin kembali berbagi, bagaimana sih caranya untuk test apakah template yang kita gunakan sudah Responsive atau belum? . Saya akan alangsung ke pointnya saja supaya tidak terlalu lama membahas masalah yang sebenarnya simple banget cara penggunaannya.

Kita akan menggunakan tool  gratis yang namanya “Google Resizer Responsive Website Checker” Google Resizer sering di gunakan untuk testing, apakah sebuah design template sudah responsive atau belum, jadi kita bisa menggunakan Tool ini sebagai media tesing, apakah template blog yang kita gunakan sudah sesuai standart dari Responsive template.

Silahkan masuk link berikut ini untuk melakukan testing dengan template Anda “ DISINI ”. Yang paling penting adalah bahwa Template Responsive menjadi bagian dari SEO, dimana pengguna atau user mobile kedepannya akan menjadi moyoritas pengguna internet dan desktop mungkin akan ditinggalkan karena faktor yang mungkin dianggap kurang fleksibel dan effisien.

Selamat mencoba

6 Cara SEO Untuk Menghasilkan Lalu Lintas Blog Maksimal

6 Cara SEO Untuk Menghasilkan Lalu Lintas Blog Maksimal

BLOGGINGPASURUAN - Mengarahkan lalu lintas dalam strategi SEO bukanlah perkara yang mudah, terutama jika tujuan Anda adalah untuk mengkonversi pengunjung menjadi pelanggan. Apapun akan kedengaran sulit..! Tetapi itu berlaku bagi mereka yang tidak pernah mencobanya. Bekerja keras bukan jaminan seorang Blogger menjadi sukses, tetapi mustahil kesuksesan diraih tanpa ada kerja keras.

Mari kita lihat 6 strategi SEO yang dapat menghasilkan lalu lintas yang menjadi target Anda atau yang menjadi rencana target Anda.


Kata kunci yang ditargetkan - apakah Anda menargetkannya sudah tepat ?

Strategi SEO yang sukses meliputi penelitian kata kunci sebagai langkah pertamanya. Anda harus memahami kata kunci atau kata yang digunakan orang untuk menemukan apa yang mereka cara pada mesin pencari. Pekerjaan utama dari kata kunci ini adalah untuk mengarahkan lalu lintas bertarget untuk Web atau Blog Anda.


Apakah Konten Anda cukup menarik ?

Konten adalah raja. Google menggunakan kualitas konten website.blog Anda dalam menentukan  peringkat pada mesin pencari karena itu hanya dengan menggunakan kata kunci bukan menjadi solusi tetapi juga menciptakan pengalaman pengguna yang positif.


Link ( balik ) yang menghubungkan kata kunci  

Jika konten disebut sebagai raja, backlink adalah ratu. Cobalah membuat konten yang sangat menarik relevan dan informatif, mesikipun ini perlu perjuangan tetapi hasilnya tidak akan sia sia, sehingga dapat mempengaruhi blogger dan situs lainnya agar terhubung dengan konten Anda. Tidak peduli situs memiliki trafik tinggi atau tidak namun setidaknya Anda sudah menciptakan LINK yang merujuk kepada LINK artikel Anda. Syaratnya adalah ada pada kualitas konten.


Media sosial - promosikan, dipromosikan dan mempromosikan

Kuncinya di sini adalah bahwa Web/Blog Anda harus memiliki pengunjung dari media sosial yang kuat. Media sosial mengirimkan sinyal pengaruh pada otoritas mesin pencari. Media sosial tidak hanya saluran pemasaran saja namun juga bisa disebut sebagai saluran layanan pelanggan. Pelanggan mengharapkan bisa terlibat dengan Blog yang Anda miliki pada tingkat yang lebih pribadi.


Partisipasi di Forum – Forum dan Buat komentar informatif !

Berpartisipasi dalam situs forum dengan lalu lintas tinggi ( seperti KASKUS di Indonesia  ) benar-benar dapat membantu Anda dan Blog Anda untuk membangun kredibilitas Blog. Berinteraksi dan aktif di komunitas yang berbeda dapat menarik pengguna yang menjadi target Anda.


Posting Blog yang dapat meningkatkan lebih banyak lalu lintas!

Ini adalah jenis metode link building yang bermanfaat mengarahkan lalu lintas yang relevan. Pilih blog yang dapat berhubungan atau berkaitan dengan tema Blog Anda. Ini setidaknya akan membantu menaikkan  page rank tinggi di search engine.
Selamat mencoba…. Semoga berhasil

Senin, 28 Maret 2016

Microsoft Build 2016 Live Streaming (March 30 – April 1)

Those who are not able to attend Microsoft’s event, which is pretty much every regular person in the world, Microsoft provided an official live stream on its website. To watch the BUILD conference, build live streaming option added in our blog in below of this article, and don’t miss a single announcement by Microsoft from the conference.


We have Build Key Note streaming in local offices for india(Bangalore, Delhi and Mumbai), and you can also get list of local Microsoft office locations from here.

You can also download Microsoft Build official mobile app for all three major mobile platforms from below links:
1. Windows
2. Android
3. IOS

Please read more about MS Build 2016 from here.




Minggu, 27 Maret 2016

How to install Windows 10 SDK and Windows 10 New Emulators with Visual Studio 2015 Update 1, Beginners Tutorials with Step by Step Guidance

Introduction:
If you are a beginner with Windows 10 UWP(Universal Windows Platform) apps, this post is here to help you get started. Step by step, I am going to show you "How to install windows 10 sdk ?" and also "How to install windows 10 New Emulators ?" with Visual Studio 2015 Community Update 1. 

This article can explain you about below topics:
1. Why UWP apps?
2. How to install Windows 10 sdk?
3. How to repair, modify and uninstall Windows 10 sdk?
4. How to install Windows 10 Emulators?
Requirements:
  • Windows 10 SDK works best on the Windows 10 operating system. And it is also supported on: Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2, but not all tools are supported on these operating systems.
  • Current release (Version 1511) of the Windows SDK doesn't include a .NET Framework Redistributable Package. So we may need to install Microsoft .NET Framework 4.6 Package.
  • Make sure the computer you’re installing on has the minimum required disk space that is from 10MB to 2.5GB hard disk space, otherwise, setup will return an error.
  • If you are trying to attempt online installer for windows 10 sdk. Make sure your system having good internet connectivity.
  • We can get Windows 10 SDK by installing Windows 10 Standalone SDK or you don’t need to install this SDK if you already having Visual Studio 2015 Update 1 or later.
  • You must enable Hyper-V on your machine to use windows 10 emulators
Description:
1. Why UWP apps?
There are so many improvements on Unviersal Windows app development for Windows 10 from Windows 8.1 experience.
  • Previously in windows 8.1 universal app project, we need to create two different app packages (.APPX) for windows phone & Windows, but now no more than one app package and we can use only one app package that can run across all Microsoft platforms (Mobile,Desktop,Xbox,Surface Hub, Holographic, IOT..etc)
  • Now no need to create two separate projects for windows phone and windows, with windows 10 sdk now build one Universal Windows app that runs on all Windows 10 devices.
  • We no longer need a developer license with Windows 10. But we must Enable Developer Mode to your device for development.
2. How to install Windows 10 SDK ?
Please follow below steps to install Windows 10 SDK.
Step 1: Make sure you’ve to downloaded the latest Windows 10 SDK or Microsoft Visual Studio 2015 from here (Note: current version is VS 2015 Update 1). After that downloaded file will be locate at 'Downloads' folder, And I am locating downloaded file in below path.

Now to install setup double click on above file. And it will launch below VS dialog box
We can make custom installation of visual studio 2015 only for Windows 10 development and so make sure to select 'Custom' option and press 'Next' button. Then we would find below screen
Universal Windows App Development Tools are enough to create your Windows 10 universal apps. So make sure to select them from above screen and press 'Next' button and it will ask us for confirmation of visual studio custom installation settings like below,
Now press on 'Install' button and setup will start to run like below
It will take more time and it depends on network speed and your system processor as well. So after some time, windows 10 sdk will be install on your system and screen could be comes with a message like 'All specified components have been installed successfully" and also its better to restart your system before to use windows 10 sdk.
3. How to repair, modify and uninstall Windows 10 sdk?
This step is very easy as same like general software, we need go to Control Panel, open Programs and Features and select our software name is Microsoft Visual Studio Community 2015 with Update1 and right click on to change. 

Now wizard would be like below
Now press what ever you want to perform on setup below actions
Modify: This options is for changing custom installation of Visual Studio
Repair: If you think any package installation was missing from your current custom installation settings, then again you can repair setup to get missing package installation on your machine.
Uninstall: This option is for removing setup from your PC, Note: you need to also remove shared components of Microsoft .NET Framework 4.6 SDK.

if you think any package was missing from your installation, press 'Repair' button from wizard, but it will take time for repairing setup and screen could be comes with below message like 'All specified components have been repaired successfully" and also we need to restart our system for making better result of setup file.


4. How to install Windows 10 Emulators?
Generally it is impossible to test our UWP app on every Windows 10 physical device, So visual studio made an nice extension is called Emulator concept, So Emulators can help us to see how our app appears on a different Windows device. But there are below few limitation to use windows 10 emulators
  • To test app in any of the emulators, you must have to install Visual Studio 2015 update 1 or later on a your machine.(Like in earlier above discussions)
  • Your processor should supports Client Hyper-V and Second Level Address Translation (SLAT).
By default, directly Windows 10 Emulators may not available with current version of Visual Studio 2015 Update 1 and you need to download windows 10 emulators separately. So please follow below steps to install window 10 emulators
Step 1: How to to download windows 10 Emulators SDK?
When you open your visual studio to create new UWP app and trying to run your app on emulators from Debug section you would be find below screen:
So click on 'Download New Emulators' and it will redirect to a Windows 10 Emulators link there you will find below option to download latest emulators
Okay to download emulators, Tap on 'Install Emulators' and it will start to download setup file and locate it in 'Downloads' folder. So after completion of download i placed the setup file in below folder path:
Now double tap on above setup file name is 'EmulatorSetup' and you will find below screen:
In above screen for offline installation, I am trying to download entire setup file to specific folder path is 'D:\Softwares\VStudio\2015\EmulatorSetup\EmulatorOffline'. you can also choose first option for direct online installation if you have good network speed in your PC.
Now the wizard will ask you about 'Windows Kits Privacy' with below screen, choose 'yes' and press 'Next' button

Now you can get download option for windows 10 emulators and press 'Download' button to start.

After some time it will complete download and shows  where it is downloaded like below screen.
Step 2: How to to install windows 10 Emulators?
So now its time for installing emulators, go to setup download folder path at 'D:\Softwares\VStudio\2015\EmulatorSetup\EmulatorOffline'. here you will find below files
Now run above setup file name is 'EmulatorSetup' and you will find below screen:
Press 'Next' button and it will again ask you about 'Windows Kits Privacy' choose 'Yes' and Click on 'Next' button. After that you need to accept 'License Agreement'. So finally you will get 'Install' option from below screen
Now setup will start for installation, and one more important note you must enable Hyper-V in your machine otherwise it will throw an error like below
If you have already enabled Hyper-V machine, setup file will be smoothly install on your machine and you will get success installation message.

Wow!!! now every thing is configured for your Windows 10 development, and you can start to build nice Windows 10 Universal Windows Platform(UWP) apps.

I added sample source code of Windows 10 UWP app and you can download source code from below option.

Custom ClipBoard

All the very best :)

FeedBack Note:
Please share your thoughts,what you think about this post,Is this post really helpful for you?I always welcome if you drop comments on this post and it would be impressive.

Follow me always at  
Have a nice day by  :)


Jumat, 25 Maret 2016

Cara Daftar dan Mendapatkan Dollar Dari Revenuehits

Cara Daftar dan Mendapatkan Dollar Dari Revenuehits

Salam Blogger, Bloggingpasuruan akan memberikan Tips bagaimana cara mendaftarkan Blog Sobat di Revenuehits, saya sedikit review tentang RevenueHits, Google Adsense merupakan jaringan iklan terbaik di dunia saat ini, namun tidak semua orang beruntung untuk menjadi publishernya. Jika Anda adalah salah-satunya, Anda tidak usah berkecil hati, karena masih banyak penyedia iklan Alternatif lain yang memberikan bayaran tinggi. Salah satunya adalah RevenueHits


RevenueHitsadalah jaringan iklan yang dikelola oleh sebuah perusahaan Start-up MyAdWise Ltd yang berbasis di Israel. Diluncurkan sejak tahun 2008 lalu, dan saat ini telah melayani lebih dari 2 miliar impresi setiap harinya.

Berbeda dengan Google Adsense yang berbasis PPC (Pay Per Click), RevenueHits merupakan performance ad-network yang akan menghitung pendapataan berdasarkan 3 hal:

CPC ads = Cost Per Click
Membayar setiap kali ada seseorang yang mengklik salah satu unit iklan Anda.

CPM ads = Cost per mile
Membayar per seribu Tayangan iklan (cost per thousand Impressions).

CPA = Cost per action
Membayar berdasarkan keterlibatan pengguna terhadap kampanye iklan advertiser. Misalnya mendowload aplikasi, berlangganan newsletter dan sebagainya.

Dengan metode perhitungan seperti diatas, pada tingkat tertinggi Anda bisa mendapatkan  $15 sampai $30 perhari. Namun hal ini tergantung pada Geo lokasi, sumber lalu lintas dan halaman arahan dll.

Bagaimana? Anda berminat menjadi publisher RevenueHit?

Cara Mendaftar menjadi Publisher di RevenueHits :

Catatan : Anda bisa langsung mendaftar di www.revenuehits.com sekaligus melihat tutorial cara mendaftar dan memasang script iklan di blog Sobat ( mudah dan praktis )

1. Pertama, masuk ke situs www.revenuehits.com
2. Kemudian Klik Join Now
3. Kemudian Isikan data-data yang diperlukan seperti nama, URL Blog, dan Category Blog

Cara Daftar dan Mendapatkan Dollar Dari Revenuehits


4. Setelah selesai, klik Next Step.
5. Setelah selesai mendaftar, silahkan Login ke RevenueHits untuk memasang Iklan nya di Blog/Website kamu.

Cara Memasang Iklan di Revenuehits :

1. Login ke Revenuehits
2. Setelah itu, pilih tab Placements
3. Klik New Placement ,
4. Pilih Iklan yang kamu sukai, contohnya Banner.
5. Kemudian Isi data yang diperlukan , seperti nama Placement, Size, dan lain-lain. Setelah itu Klik Save.

Cara Daftar dan Mendapatkan Dollar Dari Revenuehits


6. Setelah itu, klik tanda </> pada iklan tersebut dan Copy Scriptnya.
7. Buka Blogger > tata letak > Add Gadget > HTML/JavaScript dan Paste Script tadi.
8. Selesai :)

Catatan penulis :
Saya sudah merasakan earning pertama dari REVENUIHITS pada bulan ke 2 sebesar $42.13 dari dua blog yang saya kelola sekitar awal September 2015 kemarin, masing masing blog memliki trafik kunjungan per hari 5000 sd 7000 pengunjung, termasuk salah satunya adalah http://bloggingpasuruan.blogspot.com ini. Dan untuk saat ini earning yang saya dapatkan memiliki peningkata meski tak signifikan sekitar $55 sd $75 perbulan, yaaa lumayan lha.

Dan yang paling penting adalah penghasilan kita benar benar di transfer, itu saja ! dan ini buktinya :

Cara Daftar dan Mendapatkan Dollar Dari Revenuehits


Semoga bermanfaat….

Minggu, 20 Maret 2016

Cara System Restore Windows 8 / 8.1 dari Safe Mode

Cara System Restore Windows 8 / 8.1 dari Safe Mode

Tutorial ini saya tulis karena saya janji kepada pengunjung blog saya “ Ephul Art ” yang kebetulan memiliki masalah dengan LAPTOPnya yang menggunakan OS Windows 8. Permasalahan yang dialami adalah tidak bisa masuk ke system windows atau terkadang malah berhenti dan blak screen. Hal ini memang tidak bisa dilakukan dengan cara SYSTEM RESTORE yang normal karena kita tidak bisa masuk ke Mode Normal-nya Windows.

Terdapat dua cara untuk masuk ke menu [Safe Mode] . Anda dapat masuk ke menu [Safe Mode] ketika dalam keadaan normal,atau ketika Anda tidak dapat masuk ke system seperti yang dialami oleh pengunjung Blog saya Sdr “ Ephul Art “

Jadi langkah yang harus di ambil adalah me-RESTORE SYSTEM lewat Safe Mode atau Mode Aman Windows .

Cara Masuk ke Safe Mode Windows 8 dan 8.1 ketika kita tidak dapat masuk ke system Windowsnya ( ini bukan tips system restore pada normal windows )

Cara 1 : Kombinasi Shortcut keyboard

1. Menekan Tombol Shift Saat Melakukan Restart ( Jika Masih bisa memasuki Windows 8 / 8.1 ) adalah dengan menekan tombol Power pada layar login Windows . Kemudian , tekan dan tahan tombol SHIFT pada keyboard dan klik Restart.

2. Atau Menekan Shift + F8 Saat Startup windows menyala ( Tidak bisa masuk Windows )

Cara System Restore Windows 8 / 8.1 dari Safe Mode

3. Windows Akan Menampilkan Pilihan Seperti ini .Lalu tekan Troubleshoot .

Cara System Restore Windows 8 / 8.1 dari Safe Mode


4. Pada layar Troubleshoot, Pilih Advanced Options .

Cara System Restore Windows 8 / 8.1 dari Safe Mode



5. Pada layar Advanced Options, tekan Startup Settings.


Cara System Restore Windows 8 / 8.1 dari Safe Mode


6. akan muncul pemberitahuan untuk melakukan restart untuk untuk mengubah beberapa pilihan Windows, termasuk memungkinkan Safe Mode. Tekan Restart.

Cara System Restore Windows 8 / 8.1 dari Safe Mode


7. setelah komputer melakukan restart secara otomatis akan menampilkan sembilan pengaturan startup, termasuk Safe Mode, Safe Mode dengan Jaringan dan Safe Mode dengan Command Prompt

Cara System Restore Windows 8 / 8.1 dari Safe Mode



8. Tekan tombol 5 untuk mengaktifkan Safe Mode dengan Jaringan,alasan saya paling tidak nanti kita butuh koneksi internet terkait system restore atau ada kemungkinan lain agar Anda tidak mengulangi dari awal jika sewaktu waktu butuh koneksi internet. Setelah itu Windows 8 dan Windows 8.1 akan melakukan booting sesuai dengan pengaturan yang Anda pilih.


Sampai disini Anda sudah masuk pada mode Aman ( safe mode Windows 8 ). Kita tinggal melakukan system restore windows 8.


1. Pertama buka search kemudian ketikan View advanced system settings, ketika sudah muncul klik.

Cara System Restore Windows 8 / 8.1 dari Safe Mode


2. Kemudian navigasi ke System Protection dan kemudian pilih System Restore.


Cara System Restore Windows 8 / 8.1 dari Safe Mode


3. Nantinya akan terbuka jendela wizard pertama, pilih next untuk melanjutkan proses.

Cara System Restore Windows 8 / 8.1 dari Safe Mode

4. Setelah itu akan muncul list restore poin yang dapat anda gunakan, pilih lalu pilih Next. atau kamu dapat mengklik Scan for affected programs untuk melihat efek yang akan terjadi dari restore point tersebut.

Cara System Restore Windows 8 / 8.1 dari Safe Mode


5. Terakhir nantinya akan muncul konfirmasi restore poin yang Anda gunakan, untuk melanjutkan proses pilih Finish.

Cara System Restore Windows 8 / 8.1 dari Safe Mode


6. Sebelum berlanjut ke proses restore, system akan memperingatkan bahwa system restore tidak bisa dibatalkan hingga prosesnya selesai, pilih Yes untuk memulai System restore.

Cara System Restore Windows 8 / 8.1 dari Safe Mode

7.Proses system restore pun dimulai, lama tidaknya tergantung besarnya perbedaan antara pada saat keadaan sistem waktu membuat restore poin hingga sekarang.

Cara System Restore Windows 8 / 8.1 dari Safe Mode

8. Kemudian setelah selesai sistem akan merestart dan mulai untuk merestore keadaan sistem pada saat membuat restore poin, seperti settingan, registry, dsb. jika sudah selesai komputer akan login kembali ke Windows dan akan muncul notifikasi yang menyatakan bahwa system restore berhasil dilakukan.

Cara System Restore Windows 8 / 8.1 dari Safe Mode

Begitulah cara melakukan restore di Windows 8 / 8.1 ketika kita tidak bisa masuk ke sytem normal Windowsnya. Semoga bermanfaat…

Jumat, 11 Maret 2016

Syahfira Free Fast Responsive Template 2016

Syahfira Free Fast Responsive Template 2016

Salam Blogger, Cukup lama saya tidak menulis artikel baik mengenai IT maupun tutorial tutorial seputar blogger, tapi saya tetap menjawab pertanyaan pengunjung seputar artikel yang saya tulis, karena saya anggap kewajiban penulis memberikan jawaban atas pertanyaan pengunjung Blog. Maklum saya lagi ingin bisa mendisain sebuah template. Ternyata mendisain sebuah template tak semudah yang dibayangkan, karena saya pribadi seorang NEWBIE di dunia desain dan bukan seorang profesional desainer Web.

Tapi saya selalu punya keyakinan, belajar dan bisa ! Saya pribadi tidak memiliki background di dunia IT ataupun desain Web yang terkait dengan banyak bahasa pemrograman. Karena saya sendiri adalah lulusan fakultas teknik kimia di sebuah Universitas Negri di Malang Jawa Timur. Saya belajar untuk itu, mencoba untuk itu walaupun segudang pengalaman dengan yang namanya GAGAL sering saya alami, GAGAL saya anggap sebagai MODAL kedepannya. Saya selalu mencoba, walaupun ada banyak kendala “GAGAL” dan kemudian berhasil.

Alhamdulillah dengan Rahmad Allah SWT, saya mencoba membuat sebuat template berplatform BLOGGER yang saya beri nama SYAHFIRA Responsive & Fast Loading. Template ini Saya bagikan khusus untuk sobat yang menginginkan sebuah template dengan loading yang cepat, ringan, serta dipadukan dengan tampilan yang menarik. Template ini pun sudah mendukung beberapa fitur penting seperti responsive, seo friendly, validasi pada HTML5 dan CSS3, high CTR, dynamic heading dan masih banyak lagi. Untuk selebihnya silakan lihat fitur di bawah ini :

Responsive : True – Cek
SEO Friendly : True – Cek
Google testing tool validator : True – Cek
Mobile Friendly  : True – Cek
Dynamic Heading   True
High CTR :    True
Responsive Ad Slot :           True
Personal Blog :         True
2 Column :    True
Light Base Theme Color :  True
Breadcrumbs :          True
Related Posts with Thumb             : True
Search Box : True
Social Share Button :          True
Responsive Dropdown Menu :     True
Custom Subscribe Box Widget :   True
Smooth Back to Top :          True
Sitemap Widget :      True
Shortcodes :  True


Saya akan lebih berterima kasih jika para pengguna tidak menghapus credit links.

Sabtu, 05 Maret 2016

Windows 10 #UWP Apps: Now Calendar Controls are available for Phone, beginners tutorials (C#-XAML)

Introduction:
In prev post i was explained about how to use TimePicker & DatePicker controls in WinRT windows phone 8.1.But the DatePicker is optimized for picking a known date, such as a date of birth, where the context of the calendar is not important. Fortunately from Windows 10 OS(version 10.0.10240.0) Microsoft introduce CalendarView & CalendarDatePicker controls, so these controls can gives you a standardized way to let users view and interact with a calendar. 

Requirements:
  • This article is targeted for windows 10 Universal Windows Platform(Version 1511) , so make sure you’ve downloaded and installed the latest Windows 10 SDK from here.
  • We no longer need a developer license with Windows 10. But we must Enable Developer Mode to your device for development.
  • This post assumes you’re using Microsoft Visual Studio 2015 or Later.
  • This article is developed on windows 8.1 machine. So Visual Studio settings may differ from windows 10 OS VS.
    Note: Windows 10 SDK works best on the Windows 10 operating system. And it is also supported on: Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2, but not all tools are supported on these operating systems.

    Description:
    This article can explain you about below topics
    1. How to create new project in Windows 10?
    2. How to use CalendarView control in Windows 10?
    3. How to use CalendarDatePicker control in Windows 10?
    4. How to run Windows 10 UWP app in emulator?

    1. How to create new project in Windows 10?

    Before to use calendar controls, first we need to create new project. 
    • Launch Visual Studio 2015
    • On the File menu, select New > Project.
    • The New Project dialog appears. The left pane of the dialog lets you select the type of templates to display.In the left pane, expand Installed > Templates > Visual C# > Windows, then pick the Universal template group. The dialog's center pane displays a list of project templates for Universal Windows Platform (UWP) apps.
    • In the center pane, select the Blank App (Universal Windows) template.The Blank App template creates a minimal UWP app that compiles and runs, but contains no user-interface controls or data. You add controls to the app over the course of this tutorial.In the Name text box, type "UWPCalenderControl".Click OK to create the project.


    Visual Studio creates your project and displays it in the Solution Explorer.

    2. How to use CalendarView control in Windows 10?
    Now its time to use calendar controls and from windows 10 OS we have an in-built class called CalendarView, which can provide a standardized way to let users view and interact with a calendar. If you need to let a user select multiple dates, you must use a CalendarView.
    Okay now lets start to use CalendarView in our MainPage.xaml like below:
    1. <CalendarView x:Name="MyCalendarView DisplayMode="Month" SelectionMode="Multiple" CalendarItemBackground="LightBlue" BorderBrush="Orange" BorderThickness="3"/>  
    In above code 
    SelectionMode property is set to Multiple to let a user select multiple dates. DisplayMode property is useful to set calendar startup view and it is having three values(Month,Year,Decade). By default, it starts with the month view open.


    So when users click the header in the month view to open the year view, and click the header in the year view to open the decade view. Users pick a year in the decade view to return to the year view, and pick a month in the year view to return to the month view. The two arrows to the side of the header navigate forward or backward by month, by year, or by decade.
    And in C# code we can also set selected date, MinDate & MaxDate like below:
    1. MyCalendarView.SelectedDates.Add(new DateTime(2016, 3, 11));// Set selected date is March 3rd 2016);  
    2. MyCalendarView.MinDate = new DateTime(2016, 2, 28);//Min date is FEB 28th 2016  
    3. MyCalendarView.MaxDate = DateTime.Now.AddMonths(3); //Max date is 3 months from current date
    4. MyCalendarView.NumberOfWeeksInView = 6;//Month view show 6 weeks at a time  
    3. How to use CalendarDatePicker control in Windows 10?
    The CalendarView gives you a standardized way to let users view and interact with a calendar. If you need to let a user select multiple dates, you must use a CalendarView. If you need to let a user pick only a single date and don’t need a calendar to be always visible, consider using a CalendarDatePicker or DatePicker control.  So CalendarDatePicker can represents a control that allows a user to pick a date from a calendar display.
    Okay now lets start to use CalendarDatePicker in our MainPage.xaml like below:
    1. <CalendarDatePicker x:Name="MyCalendarDatePicker"/>  
    But we can also add more below properties to CalendarDatePicker
    • customize Header
    • PlaceholderText
    • We can also set DateFormat
    • DisplayMode of calendar(Month, Year, Decade)

    1. <CalendarDatePicker x:Name="MyCalendarDatePicker" Grid.Row="0" DisplayMode="Month" IsCalendarOpen="True" DateChanged="MyCalendarDatePicker_DateChanged" DateFormat = "{}{dayofweek.full}‎, ‎{month.full}‎ ‎{day.integer}‎, ‎{year.full}" PlaceholderText="Choose your date">  
    2.                 <!--Customising CalendarDatePicker HeaderTemplate -->  
    3.                 <CalendarDatePicker.HeaderTemplate>  
    4.                     <DataTemplate>  
    5.                         <TextBlock FontSize="18" FontWeight="Bold" Foreground="Green">  
    6.                             <Underline>  
    7.                                 Windows 10 Calendar control  
    8.                             </Underline>  
    9.                         </TextBlock>  
    10.                     </DataTemplate>  
    11.                 </CalendarDatePicker.HeaderTemplate>  
    12.             </CalendarDatePicker>  

    And in C# code we can also set selected date, MinDate & MaxDate like below:
    1. MyCalendarDatePicker.Date = new DateTime(2016, 3, 11);//Selected date is March 3rd 2016  
    2. MyCalendarDatePicker.MinDate = new DateTime(2016, 2, 28);//FEB 28th 2016  
    3. MyCalendarDatePicker.MaxDate = DateTime.Now.AddMonths(3);//Max date is 3 months from current date  

    We can get selected date of calendar view in 'DateChanged' event and in below code I am trying to display selected date in ContentDialog.
    1. private void MyCalendarDatePicker_DateChanged(CalendarDatePicker sender, CalendarDatePickerDateChangedEventArgs args)  
    2.     {  
    3.         //Checking selected date is null  
    4.         if (args.NewDate != null)  
    5.             {  
    6.                 /* Getting selected new date value*/  
    7.                 DisplayDate(args.NewDate.Value.ToString());  
    8.             }  
    9.      }  
    10. private async void DisplayDate(string SelectedDate)  
    11.      {  
    12.           ContentDialog noWifiDialog = new ContentDialog()  
    13.           {  
    14.                 Title = "Windows 10 Calendar Control",  
    15.                 Content = "Selected date is: " + SelectedDate,  
    16.                 PrimaryButtonText = "Ok"  
    17.           };  
    18.             noWifiDialog.Margin = new Thickness(0, 100, 0, 0);  
    19.             await noWifiDialog.ShowAsync();  
    20.       }  
    4. How to run Windows 10 UWP app in emulator?
    Now its time to test our sample, so follow below steps to run the app.
    Step 1: In addition to the options to Debug on a desktop device, Visual Studio provides options for deploying and debugging your app on a physical mobile device connected to the computer, or on a mobile device emulator. You can choose among emulators for devices with different memory and display configurations like below
    Note: 
    1. It's a good idea to test your app on a deivce with a small screen and limited memory, so use the Emulator 10.0.10240.0 WVGA 4 inch 512MB option.
    2. If you want to test our app in physical device, you must Register your Windows Phone device for development.
    3. If you already have .APPx file, you can deploy it from WinAppDeployCmd.exe tool



    After selecting emulator/device, From the Debug menu, click Start Debugging or Press F5. Then we can found below screen on emulator/device:

    Important Notes:

    1. A user can clear the selected date by clicking the selected date in the calendar view to deselect it.
    2. By default, the minimum date shown in the CalendarView is 100 years prior to the current date, and the maximum date shown is 100 years past the current date. You can change the minimum and maximum dates that the calendar shows by setting the MinDate and MaxDate properties.
    3. By default, the month view shows 6 weeks at a time. You can change the number of weeks shown by setting the NumberOfWeeksInView property. The minimum number of weeks to show is 2; the maximum is 8.
    4. This sample will be work on all window 10 devices OS devices. And this sample was tested in Emulator & Lumia 735 device with Windows 10 OS (version 1511).
    5. Windows 10 SDK works best on the Windows 10 operating system. And it is also supported on: Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2, but not all tools are supported on these operating systems
    6. This article is developed on windows 8.1 OS Machine with 64 bit. 

    Custom ClipBoard
    FeedBack Note:
    Please share your thoughts,what you think about this post,Is this post really helpful for you?I always welcome if you drop comments on this post and it would be impressive.

    Follow me always at  
    Have a nice day by  :)