ListView in WinJS based Windows Store Application

In 2012 I wrote a post List View Data Binding in Windows 8 JavaScript Metro Application. If you follow along this post some of the code will not work. So I decided to write a post again on working with ListView in WinJS. There are three simple steps to work with the ListView. Step1: CreateContinue reading "ListView in WinJS based Windows Store Application"

Working with app bar in WinJS based Windows Store Application

In this post we will learn to work with the app bar in a WinJS based Windows Store application. Let us start with creating an app bar. The app bar can be created by setting the data-win-control value of a div to WinJS.UI.AppBar.   Now you can add command buttons in an app bar asContinue reading "Working with app bar in WinJS based Windows Store Application"

Capture photo and save on the disk in WinJS based Windows Store App

In this post we will learn to capture a photo and save the captured photo on the disk. You can work with camera and capture a photo in the WinJS using the Windows.Media.Capture.CameraCaptureUI(). Let us start with creating the UI for the application. In the UI, we will have Application bar with two buttons OneContinue reading "Capture photo and save on the disk in WinJS based Windows Store App"

Classes in WinJS

Even if we have heard many times about the classes in the JavaScript, it is not an object oriented language. Rather JavaScript is a prototypal language. Working with classes in JavaScript can be but cumbersome syntactically. WinJS is a JavaScript library and it reduced the syntactical complexity of working with classes. In this post weContinue reading "Classes in WinJS"

Data Binding and Observable in WinJS

Source code on GitHub In this post we will learn how to work with the data binding and observable class in the Windows Store application created using WinJS. We will learn to work with Data binding Two way data binding Observable object By default WinJS Provides one way binding When the data source is updatedContinue reading "Data Binding and Observable in WinJS"

Data Contract Serialization Events in WCF

In WCF we use the DataContract to serialize and deserialize the custom data. Sometime you may come across a scenario do some work before or after the data gets serialized or deserialized. These are following four events provided on the DataContract. You are free to give any method name provided method should return void andContinue reading "Data Contract Serialization Events in WCF"

Multiple bindings in self-hosted WCF Service

Even though WCF is now, more than 5 years old but still I see developers struggling with the multiple bindings specially when hosted in a managed console application. In this post, step by step we will learn to create a WCF Service with multiple bindings and host the service in a managed console application. WeContinue reading "Multiple bindings in self-hosted WCF Service"

An error was raised by libgit Category =Ssh error: solved git for Visual Studio

Have you come across the error as shown in below image? You get the above shown error in Visual Studio while pulling changes from the git server. This error causes because you have local changes without the commit. In this scenario the visual Studio does not give very readable error message. Perhaps you may wantContinue reading "An error was raised by libgit Category =Ssh error: solved git for Visual Studio"

Property Initializers in C-Sharp 6.0

In the C-Sharp 3.0 a new feature Automatic property got introduced. It allows us to create a class as a bag of the setters and the getters. You can create a class as follows: Each property is backed by a backing filed. When you set value of the property, setter gets executed to set theContinue reading "Property Initializers in C-Sharp 6.0"